fix: ContactsList canAccess fallback + ContactFolderTree error handling with toast

This commit is contained in:
Agent Zero
2026-07-30 02:56:40 +02:00
parent 2836d6083e
commit ba0c4af42f
2 changed files with 21 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ export function ContactsListPage() {
const { hasPermission } = usePermission();
const authUser = useAuthStore((state) => state.user);
const canAccess = (perm: string): boolean => {
if (!authUser?.permissions && authUser?.is_system_admin === undefined) return true;
return hasPermission(perm);
};