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

User should be notified that they do not have permissions to edit a fragment if they try to edit it without manage_fragments permissions instead of giving them a generic error

    Details

      Description

      Description
      Wrong error message when a user tries to edit fragments without edit permissions. This is important because users who have fragment view permissions but no add permissions will be very confused and possibly even confuse it with a bug.

      Steps to Reproduce

      1. Create Site based off of fjord template
      2. Create role with permissions to view fragments and site navigation, but no manage_fragments permissions
      3. Add user to that role, then impersonate the user
      4. Go to fjord site
      5. Go to Build > Page Fragments
      6. Click on the link to the Fragment (The Fragment name)
      7. Edit the Fragment, then click Publish

      Expected Result
      Error message tells the user they don't have the required permissions

      Actual Result
      An unexpected error has occurred error message

      Reproduced on: Tomcat 9.0.6 + MySQL 5.7
      Portal master GIT ID: c7009c6f97ffa5dacaab10a64561b44b383cae68

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              kyle.miho Kyle Miho
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.X
                  Master