mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-19 23:43:45 +08:00
Merge remote-tracking branch 'upstream/main'
This commit is contained in:
@@ -41,6 +41,8 @@ export const useAccessStore = create<AccessControlStore>()(
|
||||
set(() => ({ token }));
|
||||
},
|
||||
isAuthorized() {
|
||||
get().fetch();
|
||||
|
||||
// has token or has code or disabled access control
|
||||
return (
|
||||
!!get().token || !!get().accessCode || !get().enabledAccessControl()
|
||||
|
||||
Reference in New Issue
Block a user