-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add Administrator role for creator and restrict Administrator role modification and deletion #191
Merged
AnuradhaSK
merged 9 commits into
wso2-extensions:main
from
RushanNanayakkara:ft_restrict_admin_role_modify
Feb 20, 2023
Merged
Add Administrator role for creator and restrict Administrator role modification and deletion #191
AnuradhaSK
merged 9 commits into
wso2-extensions:main
from
RushanNanayakkara:ft_restrict_admin_role_modify
Feb 20, 2023
Conversation
This file contains 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
AnuradhaSK
reviewed
Feb 10, 2023
...rg/wso2/carbon/identity/organization/management/role/management/service/RoleManagerImpl.java
Outdated
Show resolved
Hide resolved
AnuradhaSK
reviewed
Feb 10, 2023
...main/java/org/wso2/carbon/identity/organization/management/tenant/association/Constants.java
Outdated
Show resolved
Hide resolved
AnuradhaSK
reviewed
Feb 10, 2023
...rg/wso2/carbon/identity/organization/management/role/management/service/RoleManagerImpl.java
Outdated
Show resolved
Hide resolved
RushanNanayakkara
changed the title
Restrict Administrator role modifications and deletion
Create and assign Administrator role on sub-org creation and restrict Administrator role modification and deletion
Feb 14, 2023
RushanNanayakkara
changed the title
Create and assign Administrator role on sub-org creation and restrict Administrator role modification and deletion
Add Administrator role for creator and restrict Administrator role modification and deletion
Feb 14, 2023
...rg/wso2/carbon/identity/organization/management/role/management/service/RoleManagerImpl.java
Show resolved
Hide resolved
sadilchamishka
approved these changes
Feb 14, 2023
AnuradhaSK
approved these changes
Feb 20, 2023
pulasthi7
reviewed
May 24, 2023
...rganization/management/tenant/association/listeners/TenantAssociationManagementListener.java
Show resolved
Hide resolved
...rg/wso2/carbon/identity/organization/management/role/management/service/RoleManagerImpl.java
Show resolved
Hide resolved
...rg/wso2/carbon/identity/organization/management/role/management/service/RoleManagerImpl.java
Show resolved
Hide resolved
// The org-creator role assigned during org creation, is not allowed for update / delete. | ||
// The Administrator role permissions and display name are not allowed to be patched. | ||
if (ORG_ADMINISTRATOR_ROLE.equalsIgnoreCase(role.getDisplayName())) { | ||
return !patchOperations.stream().anyMatch(patchOperation -> |
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.
This anyMatch function is replaced by noneMatch function in the following PR
#208
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.
Purpose
Approach