-
Notifications
You must be signed in to change notification settings - Fork 409
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
#9179: Include editing support to allowed user groups #9210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dsuren1 . I tryed to suggest all the changes inline (initially only some review of code base to clarify it more) but I noticed during testing that one of the things didn't worked as expected.
In particular there is no way of allowing all logged users to be able to edit at the same time, without indicating all the groups of the system.This because the logic of the editing allowed selector for groups requires that the role is in the list.
I suggested to change this logic in the main selectorCreator used but you may need to test and check it more (and fix the unit tests).
We should handle and prioritize permissions this way:
- "editingAllowedRoles": ["ADMIN"], editingAllowedGroups: ["geosolutions"] means all admins and members of geosolutions group.
- "editingAllowedRoles": ["ADMIN", "USER"] means - all logged users (admins or users) so groups in this case are not important.
So: - Please check if the logic i suggested works and the documentation fits this requirement, fixing unit tests
- I wasn't able to test the styler. Please make you sure that this logic is correctly applied to the styler too.
Hi @offtherailz
This deviates from the requirement, the requirement was to allow ADMIN regardless of group the user belongs, and consider the group only when user is NON-ADMIN. For NON-ADMIN, default allowedGroups is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I can also see the requests to the rest interface for the configured group, even if he is not allowed. We may allow some special group for styler (e.g. adding a group styler and configuring members of this group) to make this feature fully testable.
@ElenaGallo please test this in DEV taking into account the comment above. |
Description
This PR adds support to configure
editingAllowedGroups
toFeatureEditor
andStyleEditor
pluginPlease check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
What is the new behavior?
The edit permission configuration follows the below hierarchy (Applicable for
FeatureEditor
andStyleEditor
plugin)editingAllowedRoles
oreditingAllowedGroups
configured for the pluginBreaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information