mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-14 23:33:51 -05:00
Fix author not having tournament perms
This commit is contained in:
parent
9fdf49438b
commit
cfdc10f159
|
|
@ -587,6 +587,8 @@ export class Tournament {
|
|||
if (!user) return false;
|
||||
if (isAdmin(user)) return true;
|
||||
|
||||
if (this.ctx.author.id === user.id) return true;
|
||||
|
||||
return this.ctx.staff.some(
|
||||
(staff) => staff.id === user.id && staff.role === "ORGANIZER",
|
||||
);
|
||||
|
|
@ -596,6 +598,8 @@ export class Tournament {
|
|||
if (!user) return false;
|
||||
if (isAdmin(user)) return true;
|
||||
|
||||
if (this.ctx.author.id === user.id) return true;
|
||||
|
||||
return this.ctx.staff.some(
|
||||
(staff) =>
|
||||
staff.id === user.id && ["ORGANIZER", "STREAMER"].includes(staff.role),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user