-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 9.10
-
Fix Version/s: None
-
Component/s: Automation
In a simple automation script
Auth.LoginAs(input, {}); Document.BlockPermissionInheritance(input, {});
run by a user with no admin privilege, the BlockPermissionInheritance operation throws
Caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Failed to invoke operation Document.BlockPermissionInheritance, Privilege 'WriteSecurity' is not granted to 'test' at org.nuxeo.ecm.core.api.AbstractSession.checkPermission(AbstractSession.java:215) at org.nuxeo.ecm.core.api.AbstractSession.setACP(AbstractSession.java:566) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setACP(DocumentModelImpl.java:750) at org.nuxeo.ecm.automation.core.operations.document.BlockPermissionInheritance.blockPermissionInheritance(BlockPermissionInheritance.java:69) at org.nuxeo.ecm.automation.core.operations.document.BlockPermissionInheritance.run(BlockPermissionInheritance.java:53)
EXPECTED: the system user should be able to block the permission inheritance
- is related to
-
NXDOC-2025 Correct Auth.Logout sample in documentation
- Resolved