diff --git a/api.planx.uk/modules/auth/middleware.ts b/api.planx.uk/modules/auth/middleware.ts index ef0335ff68..08c9a69e7a 100644 --- a/api.planx.uk/modules/auth/middleware.ts +++ b/api.planx.uk/modules/auth/middleware.ts @@ -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"]); /**