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

Improve relation permission handling to use view_embed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.7.0, 5.0 Maintenance, 5.1 Maintenance, 5.2-dev
    • Fix Version/s: Customer request, 4.7.0, 5.2-rc1, 5.3
    • Component/s: Permissions
    • Labels:
      None

      Description

      With the introduction security fix to not show relations, it is now required to make Media library readable.
      However it should instead use view_embed like done in xmltext field type, see:

      if ( $object->attribute( 'can_read' ) ||
           $object->attribute( 'can_view_embed' ) )
      {
          $templateName = $element->nodeName . $tplSuffix;
      }
      else
      {
          $templateName = $element->nodeName . '_denied';
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andre.romcke@ez.no André Rømcke
              • Votes:
                0 Vote for this issue
                Watchers:
                15 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 - 1 week, 7 hours, 50 minutes
                  1w 7h 50m