-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.10
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Authentication
-
Tags:
In Studio Modeler, define XML Extension:
<extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissions"> <permission name="Admin"> <include>Everything</include> </permission> </extension> <extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissionsVisibility"> <visibility> <item order="10" show="true">Read</item> <item order="20" show="true">ReadWrite</item> <item order="99" show="true">Admin</item> <item order="100" show="true">Everything</item> </visibility></extension>
In Web UI, login as Administrator and create a new Document (e.g. File), block permissions inheritance and create the following local ACLs:
User/Group Right Time Frame John Admin Permanent John Read Permanent (<- this only required because of this bug)
Login as user John and export JSON of the document.
Actual result:
... "permissions": [ "ReadProperties", "ReadSecurity", "ReadVersion", "Read", "Everything", "ReadChildren", "ReadLifeCycle", "ReviewParticipant", "Admin", "Browse" ]
Expected result:
... "permissions": [ "Write", "Archive", "WriteVersion", "CraftLibrarian", "ReadProperties", "LiteUser", "ReadCanCollect", "ReadDownloadHighRes", "DownloadLowRes", "ReadWriteDownloadHighRes", "ReadSecurity", "Remove", "ReadVersion", "Read", "StandardUser", "WriteLifeCycle", "Everything", "ReadDownloadLowRes", "Moderate", "Version", "ManageLegalHold", "DownloadArchived", "Librarian", "MakeRecord", "ReadChildren", "AddChildren", "Comment", "ReadLifeCycle", "RemoveChildren", "DataVisualization", "ReviewParticipant", "DownloadHighRes", "Unlock", "CanAskForPublishing", "RestrictedRead", "ReadWrite", "DomainUploader", "Admin", "ReadRemove", "ProjectUploader", "Browse", "SetRetention", "ViewOnlyUser", "WriteProperties", "ReadWriteDownloadLowRes", "WriteSecurity", "ManageWorkflows", "RestrictedUser" ] (this JSON exported as Administrator)
The Admin permission group should expand "Everything" as included.
A workaround is to include all the atomic permissions in the Admin permissions group in the XML contribution.