Allow directors to view reconciliation data for their group

Update BLReconciliation page to allow 'directeur' role to view reconciliation data, in addition to 'admin' role.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 28b81ac1-a55f-409c-b6a9-88ad420d8a9a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/28b81ac1-a55f-409c-b6a9-88ad420d8a9a/hAUonZr
This commit is contained in:
michaelschal committed 2025-09-03 09:12:58 +00:00
1 parent 2d5725f45b
commit a13f8a7a1e
1 file changed
+1 -1
+1 -1
View File
@@ -213,7 +213,7 @@ export default function BLReconciliation() {
queryKey: ['/api/deliveries/bl', selectedStoreId],
queryFn: async () => {
const params = new URLSearchParams({});
if (selectedStoreId && user?.role === 'admin') {
if (selectedStoreId && (user?.role === 'admin' || user?.role === 'directeur')) {
params.append('storeId', selectedStoreId.toString());
}