Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean hasAcceptedTicket(Username grader) {
- return Ticket.find("status = ? and grader = ?", Ticket.Status.ACCEPTED, grader).first() != null;
- }
- public static boolean hasPendingTicket(Username student) {
- return Ticket.find("status = ? and student = ?", Ticket.Status.PENDING, student).first() != null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement