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

As an Admin, I want the Preview Draft / Discard Draft action to be visible only for users with update pages permissions

    Description

    As the draft version of a page is not published, we don't want users with only view pages permissions to see it. Consequently, only users with update permissions should be able to see it.

    Fo r the same reasons, only the users with update permissions should be able to see and use the Discard draft action.

    Acceptance Criteria

    • Given a user with update permissions on pages
    • When clicking on the kebab menu of a page in the Pages Admin / Tree view
    • Then the user can see the Preview Draft option

    • Given a user with update permissions on pages
    • When clicking on the kebab menu of a page in the Pages Admin / Tree view
    • Then the user can see the Discard Draft option

    • Given a user with no update permissions on pages
    • When clicking on the kebab menu of a page in the Pages Admin / Tree view
    • Then the user cannot see the Preview Draft option

    • Given a user with no update permissions on pages
    • When clicking on the kebab menu of a page in the Pages Admin / Tree view
    • Then the user cannot see the Discard Draft option

    Test Scenarios

    Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration) Could it be covered by POSHI?
    As a page creator with page update permissions, the draft actions are visible to me HIGH Manual No No Yes
    As a page viewer with only page view permissions, the draft actions are not visible to me HIGH Manual No No Yes
    As a page creator with page update permissions, the draft actions are visible to me on staging site. HIGH Manual No No Yes
    As a page viewer with only page view permissions, the draft actions are not visible to me on staging site. HIGH Manual No No Yes

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            david.gutierrez David Gutiérrez Mesa
            Reporter:
            julia.molano Julia Molano
            Engineering Assignee:
            Jürgen Kappler
            Recent user:
            Enterprise Release HU
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master