瀏覽代碼

Whitelist

Manav Rathi 1 年之前
父節點
當前提交
131af10cc5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/apps/photos/src/utils/user/index.ts

+ 2 - 2
web/apps/photos/src/utils/user/index.ts

@@ -14,8 +14,8 @@ export const isInternalUser = () => {
 };
 
 export const isInternalUserForML = () => {
-    const userId = (getData(LS_KEYS.USER) as User)?.id;
-    if (userId == 1) return true;
+    const userID = (getData(LS_KEYS.USER) as User)?.id;
+    if (userID == 1 || userID == 2) return true;
 
     return isInternalUser();
 };