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

Site member does not inherit guest view permissions in calendar portlet

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.10 EE GA1, 6.2.0 CE M2
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Environment:
      Tomcat 7.0 + MySQL 5. 6.1.x GIT ID : 30b3383a559ce57b405ad9a67703a291a1c9781c.
      Tomcat 7.0 + MySQL 5. 6.2.x GIT ID : 4e9106155aaf6443337f888e82b83b9fe235d55b.
    • Branch Version/s:
      6.1.x

      Description

      When a calendar entry is created with permission:

      Viewable by: Anyone (Guest)

      a logged in user (and site member) can not display the event in the calendar view. Though, the event will be visible in the "Upcoming Events" (UE) portlet.

      Clicking on the link "View in Context" in UE will display an error message ("You do not have the required permissions.") in the calendar portlet.

      After editing the events permission and providing "View" permissions to the Site member role, the event will also be displayed in the calendar portlet.

      As mentioned in LPS-18058 and LPS-17755 the expected behaviour is that any user will inherit the permissions provided by the guest role.

      Details:
      URL of the "View in Context" link (removed identifying parts with xxx)
      http://xxx/group/xxx/kalender?p_p_id=8&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_8_struts_action=%2Fcalendar%2Fview_event&_8_eventId=15418

      Steps to reproduce:

      1) Create a new calendar event as administrator
      1.1) In the dropdown box "Viewable by" select "Anyone (Guest Role)"
      1.2) Save the event.
      2) Sign into the portal as a regular user (site member).
      2.1) Visit the calendar site which contains a calendar as well as an upcoming events portlet
      2.2) In the upcoming events portlet click on the event created in step 1)
      2.3) Click on the "Visit in Context" link
      2.4) The calendar view will provide an error message stating "You do not have the required permissions."
      3) As administrator, open the created event in the calendar portlet and click "Permissions"
      3.1) Assign "View" permissions to the user (or site member) role.
      4) Reproduce the steps mentioned under 2), the event will be correctly displayed in calendar view.

        Attachments

        1. calendar-admin-view.png
          calendar-admin-view.png
          30 kB
        2. calendar-events-created-by-admin.png
          calendar-events-created-by-admin.png
          47 kB
        3. calendar-events-viewed-by-sitemember.png
          calendar-events-viewed-by-sitemember.png
          39 kB
        4. calendar-user-view.png
          calendar-user-view.png
          25 kB
        5. context-user-view.png
          context-user-view.png
          16 kB
        6. upcoming-events-admin-view.png
          upcoming-events-admin-view.png
          21 kB
        7. upcoming-events-user-view.png
          upcoming-events-user-view.png
          17 kB
        8. viewable-by-anyone.png
          viewable-by-anyone.png
          11 kB

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            dake84 Daniel Kempf (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2