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

Add loadRelatedContent() and loadEmbedContent() to the API

    Details

      Description

      These methods should check content/view_embed permissions and filter out those not accessible, which would remove the need to check for the same using Repository::sudo() in:

      • eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
      • eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

      Ref:

      https://github.com/ezsystems/ezpublish-kernel/pull/490
      https://github.com/ezsystems/ezpublish-kernel/pull/644

      Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Petar Spanja (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 5 hours
                5h
                Remaining:
                Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - Not Specified
                Not Specified