Skip to content

Commit ebf4ee8

Browse files
committed
fix authorization func
1 parent 7f99c46 commit ebf4ee8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/functions/authorization.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export async function getUserRoles(
3131
if (!("roles" in items)) {
3232
return [];
3333
}
34+
if (items.roles[0] === "all") {
35+
return allAppRoles;
36+
}
3437
return items.roles as AppRoles[];
3538
}
3639

0 commit comments

Comments
 (0)