Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting style editing permissions in downstream projects via canEdit #10816

Closed
dsuren1 opened this issue Feb 17, 2025 · 0 comments · Fixed by #10821
Closed

Allow setting style editing permissions in downstream projects via canEdit #10816

dsuren1 opened this issue Feb 17, 2025 · 0 comments · Fixed by #10821
Assignees
Milestone

Comments

@dsuren1
Copy link
Contributor

dsuren1 commented Feb 17, 2025

Description

Currently, MS determines style editor permissions based on editingAllowedRoles and editingAllowedGroups. However, in applications like GeoNode, the permission structure differs. Therefore, a mechanism is required to set permissions for allowing or restricting style editing in downstream projects using the canEdit in StyleEditor plugin

export const canEditStyleSelector = (state) => {
...
-  return isAllowed && _isSameOrigin;
+  return canEdit || (isAllowed && _isSameOrigin);
};

Other useful information

@dsuren1 dsuren1 changed the title Enable the ability to set permissions for editing styles in downstream projects via canEdit Allow setting style editing permissions in downstream projects via canEdit Feb 17, 2025
@dsuren1 dsuren1 assigned dsuren1 and unassigned tdipisa Feb 17, 2025
@tdipisa tdipisa added this to the 2025.01.00 milestone Feb 17, 2025
dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue Feb 18, 2025
@dsuren1 dsuren1 linked a pull request Feb 18, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants