-
Notifications
You must be signed in to change notification settings - Fork 379
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
Conversation
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); |
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.
why?
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.
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>( |
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.
List<String> allPermissions = new ArrayList<String>( | |
List<String> allPermissions = new ArrayList<>( |
PR created from https://qa2.nuxeo.org/jenkins/job/TestAndPush/job/ondemand-testandpush-tmartins-10.10/52/