Backend\UserBackend: avoid recursion in getUser().
This commit is contained in:
@@ -261,9 +261,13 @@ final class UserBackend extends ABackend implements
|
|||||||
if ($user instanceof User) {
|
if ($user instanceof User) {
|
||||||
$this->cache->set($cacheKey, $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) {
|
foreach ($this->actions as $action) {
|
||||||
$action->doAction($user);
|
$action->doAction($user);
|
||||||
}
|
}
|
||||||
|
$this->actions = $actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
|
|||||||
Reference in New Issue
Block a user