This commit is contained in:
GH Action - Upstream Sync 2023-04-10 03:09:44 +00:00
commit 224f9880c9

View File

@ -29,7 +29,8 @@ export const useAccessStore = create<AccessControlStore>()(
set((state) => ({ token }));
},
isAuthorized() {
return !!get().token || !!get().accessCode;
// has token or has code or disabled access control
return !!get().token || !!get().accessCode || !get().enabledAccessControl();
},
}),
{