diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index 080a5c8..370d45d 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -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;