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

Error 500 when accessing content which has relation to content in trash

    Details

      Description

      Customer observed an issue with policies when accessing content which has relation in trash.

      Steps to reproduce:
      1. Edit existing Content Type (e.g. Article) and add ezobjectrelationlist.
      2. Create a new Article1.
      3. Create Article2 and set relation to Article1.
      4. Send Article1 to Trash.
      5. Create a new User-Editor.
      6. Log in as Editor and try to access Article2.

      Result:
      The Exception is thrown:

      An exception has been thrown during the rendering of a template ("User does not have access to 'read' 'content' with: contentId '60''") in "@EzPlatformAdminUi/fieldtypes/preview/content_fields.html.twig".
      

        Issue Links

          Activity

          Show
          André Rømcke added a comment - Merged: https://github.com/ezsystems/ezpublish-kernel/commit/8ad7759195e76a20e7757397ce2931b4d3caeb2d
          Hide
          Barbara Grajczyk added a comment - - edited

          It is connected with Role Assignments, because Editor has got some limitations: subtree of Location /eZ Platform and /Media.

          Show
          Barbara Grajczyk added a comment - - edited It is connected with Role Assignments, because Editor has got some limitations: subtree of Location /eZ Platform and /Media.

            People

            • Assignee:
              Unassigned
              Reporter:
              Konrad Oboza
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: