Skip to content

Commit

Permalink
Update src/services/sessionService.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Goostaf <[email protected]>
  • Loading branch information
Oscariremma and GAsplund authored Dec 12, 2024
1 parent 08ae329 commit 8d30dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/sessionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class SessionService {
static async isAdmin(s?: Session | null) {
const session = s ?? (await SessionService.getSession());

const adminGroups = (process.env.ADMIN_GROUPS || 'styrit,digit').split(',');
const adminGroups = (process.env.ADMIN_GROUPS ?? 'styrit,digit').split(',');
const groups = SessionService.getActiveGroups();

return session?.user?.id
Expand Down

0 comments on commit 8d30dbf

Please sign in to comment.