11-04-2019 07:21 PM
Hi, I need to block deletion of specific document types by user groups. I understand I need to write a custom security policy in order to achieve this, but I'm not sure how. So far, I have a java class extends AbstractSecurityPolicy implements SecurityPolicy that overrides the checkPermission method that returns an Access class which grants or denies permission. Is this the right way to do it? Or will it simply block the read permissions? Any help would be appreciated.
Thanks in advance
11-05-2019 10:34 AM
Hello,
I strongly advise you to watch https://university.nuxeo.com/learn/course/external/view/elearning/171/SecurityPolicies. It contains all the needed information with a practical use case (sources are available to help you).
General steps are:
Regards
11-05-2019 10:34 AM
Hello,
I strongly advise you to watch https://university.nuxeo.com/learn/course/external/view/elearning/171/SecurityPolicies. It contains all the needed information with a practical use case (sources are available to help you).
General steps are:
Regards
11-05-2019 02:33 PM
Thank you for your answer! But I have another issue
11-05-2019 02:50 PM
Security Policies are core securities: therefore, they are not "controlled" by the UI, leading by the kind of erro you have (the typical 403 - PERMISSION DENIED). So I would advice to implement UI logics (with Javascript to implement your conditions, in nuxeo-filter
elements) in addition to the security policies.
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.