mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 17:14:17 +08:00
Update access.ts
This commit is contained in:
@@ -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();
|
||||
},
|
||||
}),
|
||||
{
|
||||
|
Reference in New Issue
Block a user