Add toasty as temp admin

This commit is contained in:
Kalle
2023-12-03 19:29:43 +02:00
parent 39098dc27c
commit ee3c223d7f

View File

@@ -310,8 +310,10 @@ interface CanAdminTournament {
export function canAdminTournament({ user, tournament }: CanAdminTournament) {
// temporary hack to let Njok admin tournaments as well
if (user?.id === 14710) return true;
// // temporary hack to let .jpg admin tournaments as well
// .jpg
if (user?.id === 622) return true;
// toasty
if (user?.id === 5036) return true;
return adminOverride(user)(user?.id === tournament.author.id);
}