fix: POI-Bearbeiten-Rechte geprüft, Kontextmenü & Modal korrigiert

- Rechteprüfung auf .some(r => r.IdRight === 56) umgestellt
- Bug in PoiUpdateModal behoben (falscher fetchLocationDevices Import)
- Modal öffnet sich nur mit gültigem Bearbeitungsrecht
- Version auf 1.1.159 erhöht
This commit is contained in:
ISA
2025-05-23 13:49:57 +02:00
parent e8f3ed3674
commit 28dd0006bc
6 changed files with 39 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ export const handleEditPoi = (
console.log("User Rights includes 56:", userRights.includes(56));
// Prüfung, ob der Benutzer die notwendigen Rechte hat
if (!userRights.includes(56)) {
if (!userRights.some((r) => r.IdRight === 56)) {
toast.error("Benutzer hat keine Berechtigung zum Bearbeiten.", {
position: "top-center",
autoClose: 5000,