Browse Source

hide all when not admin

NaokiHigashi28 1 year ago
parent
commit
92ce03a9ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/client/util/scope-util.ts

+ 1 - 1
apps/app/src/client/util/scope-util.ts

@@ -66,7 +66,7 @@ export function parseScopes({ scopes, isAdmin = false }: { scopes: ScopesInput ;
 
   for (const key of topKeys) {
     // Skip 'ADMIN' key if isAdmin is true
-    if (!isAdmin && key === 'ADMIN') {
+    if (!isAdmin && (key === 'ADMIN' || key === 'ALL')) {
       continue;
     }