mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
This commit is contained in:
commit
224f9880c9
@ -29,7 +29,8 @@ export const useAccessStore = create<AccessControlStore>()(
|
|||||||
set((state) => ({ token }));
|
set((state) => ({ token }));
|
||||||
},
|
},
|
||||||
isAuthorized() {
|
isAuthorized() {
|
||||||
return !!get().token || !!get().accessCode;
|
// has token or has code or disabled access control
|
||||||
|
return !!get().token || !!get().accessCode || !get().enabledAccessControl();
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user