Skip to content

Commit

Permalink
fix: Do not use incognito mode for direct editing
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jul 22, 2024
1 parent 7512b20 commit 623743a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/private/DirectEditing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,11 @@ public function accessToken(string $token): bool {
}

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 {
Expand Down

0 comments on commit 623743a

Please sign in to comment.