ソースを参照

hide all when not admin

NaokiHigashi28 1 年間 前
コミット
92ce03a9ea
1 ファイル変更1 行追加1 行削除
  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;
     }