Add .jpg as temp tournament admin

This commit is contained in:
Kalle 2023-12-03 11:20:07 +02:00
parent 58727249e4
commit 859e4c73cd

View File

@ -310,6 +310,8 @@ 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
if (user?.id === 622) return true;
return adminOverride(user)(user?.id === tournament.author.id);
}