From 3128181476df1c10811dc6c3764427e924c25547 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Thu, 31 Oct 2024 14:45:09 +0100 Subject: [PATCH] fix-the-permission-fix --- src/Components/Map/hooks/usePermissions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Map/hooks/usePermissions.tsx b/src/Components/Map/hooks/usePermissions.tsx index 2f94b7b..d7dfcde 100644 --- a/src/Components/Map/hooks/usePermissions.tsx +++ b/src/Components/Map/hooks/usePermissions.tsx @@ -119,7 +119,7 @@ function usePermissionsManager(initialPermissions: Permission[]): { ( !item || evaluatePermissions(p.permissions) )) || - (p.policy === "$t:public_label" && + (p.policy.name === "$t:public_label" && ( (layer?.public_edit_items || item?.layer?.public_edit_items) && (!item || evaluatePermissions(p.permissions))