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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          43d 23h 55m 1 André Rømcke 22/Jan/14 2:54 PM
          Confirmed Confirmed Backlog Backlog
          3s 1 André Rømcke 22/Jan/14 2:54 PM

            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