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 authored and AndyScherzinger committed Jul 25, 2024
1 parent a3cb44c commit bcd19d1
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 bcd19d1

Please sign in to comment.