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

permissionChecker is different depending on the layout where the user is

    Details

      Description

      I build a menu which relies on Liferay's permissionChecker system.

      I have a set of layouts, and the user has the permission to see them. From one of these layouts, when I execute this line :
      LayoutPermissionUtil.check(_permissionChecker, firstOrganizationLayout, ActionKeys.VIEW);
      It raises no exception, OK.

      From one of the layouts in the private set of user layouts, when I execute this line :
      LayoutPermissionUtil.check(_permissionChecker, firstOrganizationLayout, ActionKeys.VIEW);
      It raises a principal Exception, so I have no right to see this, KO.

      It happens only on the private pages of the users.

        Attachments

          Activity

            People

            • Assignee:
              mika.koivisto Mika Koivisto
              Reporter:
              frinux frinux (Inactive)
              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:
                6 years, 30 weeks, 5 days ago

                Packages

                Version Package
                6.0.12 EE