Browse Source

Whitelist

Manav Rathi 1 năm trước cách đây
mục cha
commit
131af10cc5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
 };