fix POI hinzufügen nach 10 Versuche hat immer noch funktioniert!
This commit is contained in:
@@ -119,7 +119,7 @@ export const fetchUserRights = async () => {
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
console.log("Benutzerrechte in fetchRights:", data);
|
||||
// console.log("Benutzerrechte in fetchRights:", data);
|
||||
|
||||
// Überprüfen der Struktur der Antwort
|
||||
if (!data || !data.Rights || !Array.isArray(data.Rights)) {
|
||||
@@ -127,13 +127,13 @@ export const fetchUserRights = async () => {
|
||||
}
|
||||
|
||||
const rightsArray = data.Rights; // Nehmen an, dass 'Rights' das Array von Rechten ist
|
||||
console.log("rightsArray in apiService:", rightsArray);
|
||||
//console.log("rightsArray in apiService:", rightsArray);
|
||||
|
||||
// Speichert die IDs der Rechte in einem Array
|
||||
const userRightsIds = rightsArray.map((right) => right.IdRight);
|
||||
|
||||
// Wenn alles gut geht, logge die erfolgreichen Abschluss
|
||||
console.log("Benutzerrechte erfolgreich abgerufen:", userRightsIds);
|
||||
// console.log("Benutzerrechte erfolgreich abgerufen:", userRightsIds);
|
||||
return userRightsIds;
|
||||
} catch (error) {
|
||||
console.error("Fehler beim Abrufen der Benutzerrechte", error);
|
||||
|
||||
Reference in New Issue
Block a user