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

fix-NXP-30572-perms-admin-10.10 #4927

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Conversation

nuxeojenkins
Copy link
Collaborator

@nuxeojenkins
Copy link
Collaborator Author

View issue in JIRA: NXP-30572: Fix permission filtering for administrators

@@ -268,6 +292,7 @@ public void setUp() {
addPermission(session.getRootDocument(), JOHN, REMOVE_CHILDREN);
folder = session.createDocumentModel("/", "myFolder", "Folder");
folder = session.createDocument(folder);
blockPermissionInheritance(folder);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to verify that Administrator does not get its permissions from the ACP, but from the fact that it's a admin user

@@ -235,6 +250,15 @@ public void iCanRemoveRetainedDocInGovernance() throws LoginException {
public void iDoNotHaveRemovePermissionInCompliance() throws LoginException {
assertFalse(session.hasPermission(documentModelUnderLegalHold.getRef(), REMOVE));
assertFalse(session.hasPermission(documentModelUnderRetention.getRef(), REMOVE));
// check that other permissions are still granted to admin
List<String> allPermissions = new ArrayList<String>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
List<String> allPermissions = new ArrayList<String>(
List<String> allPermissions = new ArrayList<>(

@tmartins tmartins merged commit be27535 into 10.10 Aug 31, 2021
@tmartins tmartins deleted the fix-NXP-30572-perms-admin-10.10 branch August 31, 2021 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants