mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 03:09:32 +02:00
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:
1 parent
9f09cec209
commit
f3fe6ef1d4
3 files changed
+72
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user