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

Even if a user does not have "Calendar > Calendar: Permissions", "Permissions" button is displayed for "Edit Event"

Details

    Description

      Steps to reproduce

      1. Setup Liferay DXP7.0 and install DE-84
      2. Login as [email protected]
      3. Add a calendar portlet to default page
      4. Add a calendar event of the site
      5. Navigate to Control Panel > Users > Roles > Site Roles
      6. Define "Site Member" permission as the followings
        Calendar > Calendar: Delete Remove
        Calendar > Calendar: Manage Events
        Calendar > Calendar: Update Remove
        Calendar > Calendar: View Remove
        Calendar > Calendar: View Event
      7. Navigate to Control Panel > Users > Users and Organizations
      8. Add a user named "user1" and join default(Liferay DXP) site
      9. Login as user1
      10. Select the calendar event added in step 4 and click "Edit"
      11. When the "Edit Event" screen is displayed, click "Permission" button

      Actual result
      Error message is displayed in the log:

      2019-08-01 01:57:46.749 ERROR [http-nio-8080-exec-2][PortletConfigurationPortlet:667] User 31940 must have DEFINE_PERMISSIONS permission 
      

      Expected result
      "Permission" button is not displayed for users who do not have the permission.

      Note
      A unique fix will be required for 7.0.x due to the changes in how we check for permissions.

      Attachments

        Issue Links

          Activity

            People

              melody.wu Melody Wu
              jonathan.mccann Jonathan McCann
              Kiyoshi Lee Kiyoshi Lee
              Jonathan McCann Jonathan McCann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 32 weeks, 4 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP86
                  7.0.10.12 DXP SP12
                  7.0.X
                  7.1.10 DXP FP13
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master