Legacy Knowledge Base
Published Jun. 30, 2025

Allow users to add content based on asset publishers

Written By

Kanchan Bisht

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

  • Require permissions for a user to get an 'Add' option on a specific Asset Publisher.
    Steps to reproduce:
    1) Role-1: User-1 is the Role-1 holder and Role-2: User-2 is the Role-2 holder.
    2) Add an Asset Publisher to Page1 -> Asset publisher -> Permission -> Check all permission for Role-1
        Add an Asset Publisher to Page2 -> Asset publisher -> Permission -> Check all permission for Role-2
    Observed behavior: User-1 and User-2 can see the Add button on both Page 1, Page 2, if users enable the following: Site and Asset Library Administration> Content & Data > Web Content > Resource Permissions > Add Web Content
    (Here, web content has been added to asset publishers, hence, permission for web content has been granted. However, users can grant 'add permission' to any other assets as well.)
    Expected Behavior:
    User-1: The Add button for 'Asset Publisher' is shown only on Page 1, not on Page 2
    User-2: The Add button for 'Asset Publisher' is shown only on Page 2, not on Page 1.

Environment

  • Liferay DXP 7.4

Resolution

  • The observed behavior is the expected behavior of the portal, and the requested requirement here cannot be achieved with existing OOTB functionalities.
  • However, as a workaround, if users disable the existing AssetPublisherPortletToolbarContributor (most likely through a component blacklist), copies all the logic from the existing one, but only invokes that copied logic when certain other conditions are met (such as some additional permission users add to asset publisher, some property of the page, etc.), that will likely achieve what their need.

Additional Information

  • We have a different channel called 'Global Service Team' for any additional assistance with code implementation or development.
Did this article resolve your issue ?

Legacy Knowledge Base