This commit is contained in:
GH Action - Upstream Sync
2023-05-05 16:11:14 +00:00
8 changed files with 509 additions and 18 deletions

View File

@@ -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()