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

XMLText uses canUser API wrong on location embeds

    XMLWordPrintable

Details

    Description

      How to reproduce :

      • Embed some node in an xmltext field
      • Add a section limitation to content/read policy (any section)
      • Try to render xmltext field with a user subject to said policy

      What happens:

      • eZ\Publish\Core\FieldType\XmlText\Converter\EmbedToHtml5::processTag() checks user permissions to read embedded location
      • eZ\Publish\Core\Limitation\SectionLimitationType::evaluate() complains that $object should be of type ContentCreateStruct, Content, VersionInfo or ContentInfo

      This can be reproduced with several limitation types (section, content type ) probably every content related limitation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bchoquet bchoquet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m