Update access.ts
This commit is contained in:
parent
3c1e81897a
commit
150735b001
|
@ -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();
|
||||
},
|
||||
}),
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue