Merge pull request #479 from R0m1k3/1.1

1.1
This commit is contained in:
LogiFlow authored and GitHub committed 2025-10-10 18:03:57 +02:00
commit 4af909d51c
7 files changed
+581 -538

No files matched your search

+8
View File
@@ -31,6 +31,10 @@ externalPort = 3003
localPort = 34203
externalPort = 8080
[[ports]]
localPort = 35937
externalPort = 8099
[[ports]]
localPort = 38343
externalPort = 3000
@@ -63,6 +67,10 @@ externalPort = 5173
localPort = 44965
externalPort = 6800
[[ports]]
localPort = 45031
externalPort = 8081
[workflows]
runButton = "Project"
Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

+2 -1
View File
@@ -231,7 +231,8 @@ export default function Dashboard() {
queryKey: ["/api/dlc-products/stats", selectedStoreId],
queryFn: () => {
const params = new URLSearchParams();
if (selectedStoreId && user?.role === 'admin') params.append("storeId", selectedStoreId.toString());
// Envoyer selectedStoreId pour tous les utilisateurs (le backend gère les permissions)
if (selectedStoreId) params.append("storeId", selectedStoreId.toString());
return fetch(`/api/dlc-products/stats?${params.toString()}`, {
credentials: 'include'
}).then(res => res.json());