Skip to content
Snippets Groups Projects
Verified Commit 1861a517 authored by Dave Long's avatar Dave Long
Browse files

SA-CORE-2023-002 by larowlan, james.williams, xjm, longwave, danflanagan8,...

SA-CORE-2023-002 by larowlan, james.williams, xjm, longwave, danflanagan8, jenlampton, pandaski, benjifisher
parent c7eb32ef
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,14 @@ public static function isApplicable(FieldDefinitionInterface $field_definition)
return ($field_definition->getFieldStorageDefinition()->getSetting('target_type') == 'media');
}
/**
* {@inheritdoc}
*/
protected function checkAccess(EntityInterface $entity) {
return $entity->access('view', NULL, TRUE)
->andIf(parent::checkAccess($entity));
}
/**
* Get the URL for the media thumbnail.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment