Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-11076

The "Permissions" model permission should be added automatically and "Define Permissions" should not be mandatory

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 5.2.3, 6.0.2 RC
    • Fix Version/s: 6.0.3 GA
    • Labels:
      None
    • Branch Version/s:
      5.2.x, 5.1.x
    • Backported to Branch:
      Committed

      Description

      Currently, the permission system requires the user to define the "PERMISSIONS" permission for custom portlets for each model resource in the resource actions XML, if the permission system is going to be used for it.

      While this makes sense, many people don't notice it and creates unnecessary headaches. This can be easily solved by adding this permission automatically to any resource. If the custom portlet does not use the permission system the user won't ever notice that it's been added automatically, and if it's used then it'll be there already.

      Another related issue is that the current code fails in some specific situations if the model does not add a "DEFINE_PERMISSIONS" action too. The reason is that now the permission system throws an exception if there is a check for an action that has not been registered so before checking for that action it should verify that it's been registered for that resource.

        Attachments

          Activity

            People

            • Assignee:
              jorge.ferrer Jorge Ferrer
              Reporter:
              jorge.ferrer Jorge Ferrer
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                10 years, 6 weeks, 2 days ago

                Packages

                Version Package
                6.0.3 GA