Commit 0661d268 authored by Mark Harding's avatar Mark Harding

(fix): suggested users should not be called if deleted or disabled - resolves #768

parent d57202a4
No related merge requests found
Pipeline #77842302 running with stages
......@@ -101,9 +101,13 @@ class Manager
// TODO: make this a bulk request vs sequential
foreach ($response as $suggestion) {
$entity = $suggestion->getEntity() ?: $this->entitiesBuilder->single($suggestion->getEntityGuid());
if (!$entity) {
error_log("{$suggestion->getEntityGuid()} suggested user not found");
continue;
}
if ($entity->getDeleted()) {
error_log("Deleted entity ".$entity->guid." has been omitted from suggestions t-".time());
break;
continue;
}
$suggestion->setEntity($entity);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment