Skip to content

Commit

Permalink
fix-the-permission-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antontranelis committed Oct 31, 2024
1 parent d472982 commit 3128181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Map/hooks/usePermissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3128181

Please sign in to comment.