02-15-2012 04:03 PM
Hello,
I have just dowloaded and installed Nuxeo Document Management 5.5 and I tried what is described at http://doc.nuxeo.com/display/DMDOC/Managing+access+rights about access rights management.
So I did the following steps:
As Administrator
as John Do user
Question: Is it normal that the Delete button is enabled even if there is a Deny - Remove permission on the workspace for the user ?
I would have expected that the user won't be able to delete any document.
Thanks in advance for your answer
Best regards, Christophe
02-16-2012 10:03 AM
Hello,
This is due to the access rights priorization, as explained on this page: http://doc.nuxeo.com/x/UYEk.
In this case, the user still has the right to remove documents because at the same level (in the same workspace) he's denied the right to delete documents, but he's also granted the Write permission. Since Write includes the Remove permission and granted rights win over denied rights, in the end the user is granted the right to remove.
02-16-2012 10:03 AM
Hello,
This is due to the access rights priorization, as explained on this page: http://doc.nuxeo.com/x/UYEk.
In this case, the user still has the right to remove documents because at the same level (in the same workspace) he's denied the right to delete documents, but he's also granted the Write permission. Since Write includes the Remove permission and granted rights win over denied rights, in the end the user is granted the right to remove.
02-16-2012 10:48 AM
Hello,
02-23-2012 09:32 AM
I'm wondering why the Write permission needs to include Remove, it could be a good test to check if this is a problem for other features. I think it could be considered a bug, maybe to handle at the same time than https
02-21-2012 11:48 AM
If you want to override the default rights hierarchy then you can create a custom security policy by extending SecurityPolicy. See http://doc.nuxeo.com/display/NXDOC/Security+Policy+Service for more details.
Be careful with this because there can be negative performance side-effects if the custom policy is too complex!
09-26-2012 10:50 PM
I think the original question is an important one: how to grant permission to create new objects but not remove old ones.
The comments above (directing to the doc) seem to be in conflict with the doc, which states:
The "Remove" permission is intended to be denied, so as to restrict the actions available to users with "Write" permission.
If "Remove" permission is intended to be denied, but granting Write takes precedence, how is it possible to ever deny remove? To me this smells like a defect.
Tom
09-26-2012 11:04 PM
The answer is to redefine the aggregate permission Write to work the way you want it to. Or create a new permission (e.g., Write Only) which maps to a subset of the existing Write permission.
09-30-2012 08:23 PM
Is <require> tag needed for override to take effect and if so what does need to refer to?
10-01-2012 12:49 AM
I got it to work. You will need a standard component wrapper around this but otherwise it works. Nuxeo is wonderful but does not make a good first date...
<require>org.nuxeo.ecm.core.security.SecurityService</require>
<require>org.nuxeo.ecm.core.security.defaultPermissions</require>
<extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissions">
<!-- Removed 'Remove' from Write permission -->
<permission name="Write">
<remove>Remove</remove>
</permission>
</extension>
11-04-2019 06:12 PM
Is there some way to apply this extension to specific document types?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.