From 5662b890de546e2bb2093e3602b3cd0c7872c052 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 24 Jun 2025 16:18:28 +0200 Subject: [PATCH] Fix userStore fetching when not allowed Fix userStore attempting to fetch the users list when it's either not logged in or not allowed to fetch the users, causing the schedule page to not render. --- stores/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/users.ts b/stores/users.ts index 11c17c3..5184be8 100644 --- a/stores/users.ts +++ b/stores/users.ts @@ -18,7 +18,7 @@ export const useUsersStore = defineStore("users", () => { } const actions = { async fetch() { - if (state.fetched.value) { + if (!accountStore.isCrew || state.fetched.value) { return state.users; } const pending = state.pendingSync.value;