Skip to content
Snippets Groups Projects
Commit 4df80d6a authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3501966 by anybody: Sort out entirely processed users via UserDecorator

parent 91a16382
No related branches found
No related tags found
1 merge request!4Implementation
Pipeline #404757 passed with warnings
......@@ -196,7 +196,11 @@ class Manager {
$users = [];
foreach ($uids as $uid) {
$user = $this->entityTypeManager->getStorage('user')->load($uid);
$users[] = new UserDecorator($user, $this->userData);
$decoratedUser = new UserDecorator($user, $this->userData);
// Add the user if it wasn't finally escalated yet:
if ($decoratedUser->getLastEscalationStep() < $this->getFinalEscalationStepCount()) {
$users[] = $decoratedUser;
}
}
return $users;
}
......
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