Permit subadmins to add accessible users to groups they manage#39013
Merged
phil-davis merged 3 commits intoowncloud:masterfrom Jul 16, 2021
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
eebbc88 to
7c35fbf
Compare
…hey are responsible for
phil-davis
reviewed
Jul 16, 2021
Contributor
phil-davis
left a comment
There was a problem hiding this comment.
LGTM. I pushed acceptance test scenarios to check this new behavior. They fail against master and pass in this branch - so there is a real and good difference in this PR.
IMO there is no security issue with this change. A subadmin who already has subadmin privileges over a user (because the user is in one group) can already delete the user etc. Now they are able to add them to another group which they are a subadmin of. That gives them no more power over the user.
jvillafanez
approved these changes
Jul 16, 2021
|
Kudos, SonarCloud Quality Gate passed! |
micbar
approved these changes
Jul 16, 2021
Contributor
|
Thanks! |
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change aligns the provisioning API (and by extension, the owncloud-sdk) to allow subadministrators of groups (not just admins) to add users to groups they are a subadministrator of, providing that the user is already a member of a group managed by the subadmin. This is already permitted via the OC10 UI (which uses the PHP API directly
toggleGroups).Related Issue
How Has This Been Tested?
Tested manually and updated and added several unit tests.
Types of changes
Checklist: