Add SETUP_MODE checks

This commit is contained in:
Darren Clarke 2023-08-28 14:36:34 +02:00
parent 859c11fb1c
commit 0b5e242ed0
2 changed files with 18 additions and 13 deletions

View file

@ -63,7 +63,7 @@ export default withAuth(
}
const roles: any = token?.roles ?? [];
if (roles.includes("admin") || roles.includes("agent")) {
if (roles.includes("admin") || roles.includes("agent") || process.env.SETUP_MODE === "true") {
return true;
}