Add SETUP_MODE checks
This commit is contained in:
parent
859c11fb1c
commit
0b5e242ed0
2 changed files with 18 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue