mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 19:55:46 -05:00
Add Njok hack
This commit is contained in:
@@ -318,6 +318,9 @@ interface CanAdminTournament {
|
||||
event: Pick<CalendarEvent, "authorId">;
|
||||
}
|
||||
export function canAdminTournament({ user, event }: CanAdminTournament) {
|
||||
// temporary hack to let Njok admin tournaments as well
|
||||
if (user?.id === 14710) return true;
|
||||
|
||||
return adminOverride(user)(user?.id === event.authorId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user