Message Boards

LIferay 7.2 DXP: DM folder inheritance permissions

thumbnail
Alessandro Candini, modified 3 Years ago.

LIferay 7.2 DXP: DM folder inheritance permissions

Regular Member Posts: 130 Join Date: 10/17/15 Recent Posts

Hi everyone, I've the following scenario: in my Documents and Media, I have several folders, each one with different permission based on custom roles.

Let's say that in folder A I've set writing permissions for role A, in folder B for role B and so on...

Now my question: is that possible to inherite these role associacion (and so related permissions) for every content inside every folder?

The use case is that a user with roleA can create a document in folder A, and after that another user with the same roleA should be able to modify that document.

I know I can manually change permissions on every content, but this is an over effort I don't want to teach to my users...so, does exist some sort of configuration to achieve this?

Thank you!

thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: LIferay 7.2 DXP: DM folder inheritance permissions

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

 Hi ,

You can have service wrapper for DlAppService and write your logic to copy the model permission from parent folder.

You can try below service for copying the role access

		ResourceLocalServiceUtil.copyModelResources(companyId, name, oldPrimKey, newPrimKey);

 

thumbnail
Christoph Rabel, modified 3 Years ago.

RE: LIferay 7.2 DXP: DM folder inheritance permissions

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

AFAIK no.

We have a DLLocalServiceWrapper that sets the permissions on certain documents according to some rules that are easy to understand. We e.g. have documenttypes and a dropdown with Public/Secret/... in there and the dropdown overrules the standard behavior.

It works pretty well and implementing a service wrapper isn't really difficult (you just have to take care to implement all relevant methods).

thumbnail
Fernando Fernandez, modified 3 Years ago.

RE: LIferay 7.2 DXP: DM folder inheritance permissions

Expert Posts: 396 Join Date: 8/22/07 Recent Posts

Document folder settings should have a check box for "Inherit parent folder permissions". 

thumbnail
Alessandro Candini, modified 3 Years ago.

RE: RE: LIferay 7.2 DXP: DM folder inheritance permissions

Regular Member Posts: 130 Join Date: 10/17/15 Recent Posts

You mean in control panel?

Cold you please tell me where to find this configuration?

Thank you.