Commit 34ee75c3 authored by Mark Harding's avatar Mark Harding

(fix): regression caused by 24d1a927

parent 1359daf0
No related merge requests found
Pipeline #100226869 waiting for manual action with stages
in 7 minutes and 12 seconds
......@@ -26,9 +26,10 @@ class Thumbnails
*/
public function get($entity, $size)
{
if (is_string($entity)) {
$entity = $this->entitiesBuilder->build($entity);
if (is_numeric($entity)) {
$entity = $this->entitiesBuilder->single($entity);
}
if (!$entity || !Core\Security\ACL::_()->read($entity)) {
return false;
}
......
Please register or to comment