Legacy Knowledge Base
Published Jun. 30, 2025

Optimize the permission inheritance in the Documents and Media portlet

Written By

Viktória Gyömbér

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • We would like to create a subfolder that Inherits the parent folder permission.

     

Environment

  • Liferay DXP 7.3

 

Resolution

  • To configure Liferay that enables the permission inheritance between parent and child folders, but it turned out that due to a technical limitation of the current implementation this is not an option. Our current permission system only allows VIEW permission inheritance, which is enabled by default, but this is also working somewhat differently than what you wish to achieve:
    #
    # Set the following to true to automatically check the view permission on
    # parent categories or folders when checking the permission on a specific
    # item.
    #
    # For example, if set to true, to be able to have access to a document, a
    # user must have the view permission on the document's folder and all its
    # parent folders. Or, to have access to a comment, a user must have the view
    # permission on the comments's category and all its parent categories.
    #
    # Env: LIFERAY_PERMISSIONS_PERIOD_VIEW_PERIOD_DYNAMIC_PERIOD_INHERITANCE
    #
    permissions.view.dynamic.inheritance=true

Additional Information

  • This feature has been requested already in our issue-tracking system:  LPS-46357

 

 

Did this article resolve your issue ?

Legacy Knowledge Base