Skip to content

Commit

Permalink
feat: add demoUser to api user auth (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 authored Oct 31, 2024
1 parent f31ee89 commit 4fb2ae1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api.planx.uk/modules/auth/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,15 @@ export const useRoleAuth: UseRoleAuth =
// Convenience methods for role-based access
export const useTeamViewerAuth = useRoleAuth([
"teamViewer",
"demoUser",
"teamEditor",
"platformAdmin",
]);
export const useTeamEditorAuth = useRoleAuth(["teamEditor", "platformAdmin"]);
export const useTeamEditorAuth = useRoleAuth([
"teamEditor",
"platformAdmin",
"demoUser",
]);
export const usePlatformAdminAuth = useRoleAuth(["platformAdmin"]);

/**
Expand Down

0 comments on commit 4fb2ae1

Please sign in to comment.