Skip to content

Commit 79331c3

Browse files
committed
fix(axiom): first user is unable to access admin dashboard
1 parent 8ba7082 commit 79331c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/db/access/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const isJudge = ({ req: {user} }) => {
6969
};
7070

7171
export const isOrganizer: IsAuthenticated = ({ req: { user } }) =>
72-
user?.group?.name === "Organizer";
72+
{ return user?.id === 1 || user?.group?.name === "Organizer"; }
7373

7474
export const isOrganizerInTeam = (teamNames: string[]) => {
7575
return ({ req: { user } }: AccessArgs<User>) =>

0 commit comments

Comments
 (0)