瀏覽代碼

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;
     }