Backend\UserBackend: avoid recursion in getUser().

This commit is contained in:
Claus-Justus Heine
2025-06-30 11:37:50 +02:00
parent cafa6bbd78
commit f565705b4f

View File

@@ -261,9 +261,13 @@ final class UserBackend extends ABackend implements
if ($user instanceof User) {
$this->cache->set($cacheKey, $user);
// avoid recursion as the action may very well call into the UserManager again ...
$actions = $this->actions;
$this->actions = [];
foreach ($this->actions as $action) {
$action->doAction($user);
}
$this->actions = $actions;
}
return $user;