Skip to content

Commit

Permalink
add demoUser to api user auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Oct 31, 2024
1 parent f31ee89 commit d0f1e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,11 @@ 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 d0f1e16

Please sign in to comment.