Browse Source

Fix error caused by rebase.

pull/897/head
Alexander O'Neill 2 years ago
parent
commit
bf25e2447a
  1. 2
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

2
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -199,7 +199,7 @@ class IIIFManifest extends StylePluginBase {
/** @var \Drupal\Core\Field\FieldItemListInterface $images */
$images = $entity->{$viewsField->definition['field_name']};
foreach ($images as $image) {
foreach ($images as $i => $image) {
if (!$image->entity->access('view')) {
// If the user does not have permission to view the file, skip it.
continue;

Loading…
Cancel
Save