How to provide permission to Fragments

Issue

  • Does DXP have permission feasibility with fragments?

Environment

  • Liferay DXP  [all versions]

Resolution

  • There is no way to directly control the visibility of a Fragment depending on the user accessing the page.
  • These LPS-132082 and LPS-166820 have been created to add permissions on Fragments to control which users can add which fragments to a page.

Additional Information

  • The following workaround which users can see if it is feasible at their end:
    This could be handled by Page Experiences. By creating the whole page for a specific role:
    • They would avoid a possibly huge performance impact that would come from Liferay implementing fragment based permission checking
    • They would be able to control who gets to see what
    • They would always be able to see the fully rendered page
Was this article helpful?
0 out of 0 found this helpful