Browse Source
fix: Do not use incognito mode for direct editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/44295/head
Julius Härtl
2 years ago
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
0 additions and
2 deletions
-
lib/private/DirectEditing/Manager.php
|
|
|
@ -272,13 +272,11 @@ class Manager implements IManager { |
|
|
|
} |
|
|
|
|
|
|
|
public function invokeTokenScope($userId): void { |
|
|
|
\OC_User::setIncognitoMode(true); |
|
|
|
\OC_User::setUserId($userId); |
|
|
|
} |
|
|
|
|
|
|
|
public function revertTokenScope(): void { |
|
|
|
$this->userSession->setUser(null); |
|
|
|
\OC_User::setIncognitoMode(false); |
|
|
|
} |
|
|
|
|
|
|
|
public function createToken($editorId, File $file, string $filePath, IShare $share = null): string { |
|
|
|
|