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

@@ -7,7 +7,8 @@ export const fetchUserRightsService = async () => {
const idMap = params.get("m");
const idUser = params.get("u");
const url = `${apiBaseUrl}/GetUserRights?idMap=${idMap}&idUser=${idUser}`;
const url = `${apiBaseUrl}/GisSystemStatic?idMap=${idMap}&idUser=${idUser}`;
console.log("🔍 Rechte-Fetch URL:", url);
const response = await fetch(url, {
method: "GET",
@@ -21,5 +22,6 @@ export const fetchUserRightsService = async () => {
}
const json = await response.json();
console.log("👤 Rechte-Response JSON:", json);
return json.Rights || [];
};