diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-03-19 11:12:03 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-22 12:44:21 +0000 |
commit | 1c75c5f1e098600c414915f22304436f25c974f7 (patch) | |
tree | 3ebf6de41cdc4d6da1c87d345bd367c300264a48 /lib/public | |
parent | f413e80fedad5357723071983fc927a411b253dc (diff) | |
download | nextcloud-server-1c75c5f1e098600c414915f22304436f25c974f7.tar.gz nextcloud-server-1c75c5f1e098600c414915f22304436f25c974f7.zip |
fix: Implement option to temporarily set the user session
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IUserSession.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/IUserSession.php b/lib/public/IUserSession.php index 7bc37cc67c6..dc6094550bc 100644 --- a/lib/public/IUserSession.php +++ b/lib/public/IUserSession.php @@ -64,6 +64,14 @@ interface IUserSession { public function setUser($user); /** + * Temporarily set the currently active user without persisting in the session + * + * @param IUser|null $user + * @since 29.0.0 + */ + public function setVolatileActiveUser(?IUser $user): void; + + /** * get the current active user * * @return \OCP\IUser|null Current user, otherwise null |