From 36ad9389429301f7bf4d2d496d7539b4cf7a817c Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine Date: Fri, 17 Oct 2025 16:53:08 +0200 Subject: [PATCH] UserBackend, fix action recursion guard --- lib/Backend/UserBackend.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index 370d45d..842c1bc 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -261,13 +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) { + // avoid recursion as the action may very well call into the UserManager again ... + $actions = $this->actions; + $this->actions = []; + foreach ($actions as $action) { $action->doAction($user); } - $this->actions = $actions; + $this->actions = $actions; } return $user;