Message Boards
LIferay 7.2 DXP: DM folder inheritance permissions
LIferay 7.2 DXP: DM folder inheritance permissions
Regular Member Posts: 130 Join Date: 10/17/15 Recent PostsHi 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!
RE: LIferay 7.2 DXP: DM folder inheritance permissions
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi ,
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);
RE: LIferay 7.2 DXP: DM folder inheritance permissions
Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent PostsAFAIK 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).
RE: LIferay 7.2 DXP: DM folder inheritance permissions
Expert Posts: 396 Join Date: 8/22/07 Recent PostsDocument folder settings should have a check box for "Inherit parent folder permissions".
RE: RE: LIferay 7.2 DXP: DM folder inheritance permissions
Regular Member Posts: 130 Join Date: 10/17/15 Recent PostsYou mean in control panel?
Cold you please tell me where to find this configuration?
Thank you.