Skip to content

Commit

Permalink
Merge pull request #3833 from nextcloud/chore/volatile-user
Browse files Browse the repository at this point in the history
chore: Switch to new API to set volatile user to prevent persisting it in any case
  • Loading branch information
juliushaertl committed Jul 31, 2024
2 parents 2f3966a + 6cfed51 commit 7f5160f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Service/UserScopeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 7f5160f

Please sign in to comment.