Fix an error preventing users from accessing system features

Initialize the usePermissions hook in the BLReconciliation component to resolve a ReferenceError, enabling correct role-based access control.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/wU3ydzZ
This commit is contained in:
michaelschal committed 2025-08-12 11:28:59 +00:00
1 parent 9f09cec209
commit f3fe6ef1d4
3 files changed
+72

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ export default function BLReconciliation() {
const { selectedStoreId } = useStore();
const { toast } = useToast();
const queryClient = useQueryClient();
const permissions = usePermissions(user?.role);
// Redirection pour les employés
if (user?.role === 'employee') {