Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29218

Missing Content/Versionread policy causes error on Dashboard when some drafts exist

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • None
    • dev-master
    • None

    Description

      Steps:

      1. Create a role with these permissions:

      • User/Login
      • User/Password
      • Content/Read
      • Content/Create
      • Content/Versionread

      2. Create a user and assign it with no limitations to the role from previous step
      3. Log in as the user from step 2.
      4. Go to Content/Content structure and click Create
      5. Choose article and fill required fields
      6. Click Save
      7. As an Admin remove from the role from step 1 policy: Content/Versionread
      8. Log in to the application as user from step 2

      Actual result:

      After logging in, an error is shown:

      An exception has been thrown during the rendering of a template ("User does not have access to 'versionread' 'content'").

      loadContentDrafts() method requires Content/Versionread policy

      Expected result:

      To keep consistency Drafts tab on dashboard could be hidden

      Attachments

        Activity

          People

            Unassigned Unassigned
            barbara.grajczyk@ez.no Barbara Grajczyk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: