diff --git a/lib/Service/UserScopeService.php b/lib/Service/UserScopeService.php index 30824c9c8e..1d278c9685 100644 --- a/lib/Service/UserScopeService.php +++ b/lib/Service/UserScopeService.php @@ -33,7 +33,8 @@ public function setUserScope(?string $uid = null): void { if ($user === null) { throw new InvalidArgumentException('No user found for the uid ' . $uid); } - $this->userSession->setUser($user); + + $this->userSession->setVolatileActiveUser($user); } /**