Commit 5a7ee167 authored by Mark Harding's avatar Mark Harding

(fix): If entity not found then dont pass to ACL - fixes front#2298

parent 34ee75c3
No related merge requests found
Pipeline #100232126 waiting for manual action with stages
in 7 minutes and 5 seconds
......@@ -879,8 +879,9 @@ function elgg_get_entities(array $options = array()) {
}
$entity = entity_row_to_elggstar($newrow);
if(Minds\Core\Security\ACL::_()->read($entity))
if ($entity && Minds\Core\Security\ACL::_()->read($entity)) {
$entities[] = $entity;
}
}
}
} catch(Exception $e){
......
Please register or to comment