We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba7082 commit 79331c3Copy full SHA for 79331c3
libs/db/access/index.ts
@@ -69,7 +69,7 @@ export const isJudge = ({ req: {user} }) => {
69
};
70
71
export const isOrganizer: IsAuthenticated = ({ req: { user } }) =>
72
- user?.group?.name === "Organizer";
+ { return user?.id === 1 || user?.group?.name === "Organizer"; }
73
74
export const isOrganizerInTeam = (teamNames: string[]) => {
75
return ({ req: { user } }: AccessArgs<User>) =>
0 commit comments