UserBackend, fix action recursion guard

This commit is contained in:
Claus-Justus Heine
2025-10-17 17:40:23 +02:00
parent 6d769253b8
commit 36ad938942
+5 -5
View File
@@ -261,13 +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 ... // avoid recursion as the action may very well call into the UserManager again ...
$actions = $this->actions; $actions = $this->actions;
$this->actions = []; $this->actions = [];
foreach ($this->actions as $action) { foreach ($actions as $action) {
$action->doAction($user); $action->doAction($user);
} }
$this->actions = $actions; $this->actions = $actions;
} }
return $user; return $user;