Skip to content

Commit

Permalink
Users should be able to open more tickets of other panels if they hav…
Browse files Browse the repository at this point in the history
…e another one open already
  • Loading branch information
BlueTree242 committed Feb 16, 2024
1 parent 8f14de9 commit f6f4bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public Set<Ticket> getTicketsForUser(User user, boolean includeClosed) {
TicketsRecord check = conn
.selectFrom(TicketsTable.TICKETS)
.where(TicketsTable.TICKETS.USERID.eq(user.getIdLong()))
.and(TicketsTable.TICKETS.ID.eq(id))
.and(TicketsTable.TICKETS.CLOSED.eq("false"))
.orderBy(TicketsTable.TICKETS.OPENTIME)
.fetchOne();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void onButtonClick(@NotNull ButtonClickEvent e) {
if (panel != null) {
if (e.getUser().isBot()) return;
if (e.getMember().getRoles().contains(core.getPlatform().getDiscordSRV().getMainGuild().getRoleById(core.getTicketsConfig().ticket_banned_role()))) {
e.deferReply(true).setContent("You are Ticket Muted").queue();
e.deferReply(true).setContent("You are ticket muted.").queue();
return;
}
Ticket t = panel.openTicket(e.getUser());
Expand Down

0 comments on commit f6f4bac

Please sign in to comment.