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

Knowledge Base shows action buttons for users that only have VIEW_SUGGESTIONS permission

    Details

      Description

      Steps to reproduce:

      1. Go to Control Panel > Users > Roles
      2. On the "User" role, select the "Define Permissions" action
      3. Add the Site Admin > Content > Knowledge Base > View Suggestions permission to the User role.
      4. Make sure the User role does not have the "Update" permission.
      5. Go to Control Panel > Users > Users and Organizations
      6. Create a regular user with User role.
      7. Add the user to the "Liferay" site
      8. As an administrator, go to Admin > Content > Knowledge Base
      9. Create a new article
      10. Go to any public page and add the KB Display portlet
      11. Login as the regular user created in step (6)
      12. Go to the page where the KB Display is located
      13. Add a suggestion to the article

      Expected: After adding the suggestion, it is shown just below the article, and the buttons to change comment state are not displayed
      Actual: The article is shown, but state buttons are present. If the user clicks any of the buttons, they will fail.

      NOTE: the state buttons are located just below the comment; they're not related to the regular action buttons

        Attachments

        1. fixed.png
          fixed.png
          15 kB
        2. reproduced.png
          reproduced.png
          29 kB

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              adolfo.perez Adolfo Pérez
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M4