Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Remove broken way of updating the encryption access list
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 20, 2023
commit 5bff693585f0fb97564151f71bc43f5b4cd1bfc8
10 changes: 0 additions & 10 deletions lib/Controller/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,6 @@ public function index($fileId, ?string $path = null) {
}
}

$encryptionManager = \OC::$server->getEncryptionManager();
if ($encryptionManager->isEnabled()) {
// Update the current file to be accessible with system public shared key
$owner = $item->getOwner()->getUID();
$absPath = '/' . $owner . '/' . $item->getInternalPath();
$accessList = \OC::$server->getEncryptionFilesHelper()->getAccessList($absPath);
$accessList['public'] = true;
$encryptionManager->getEncryptionModule()->update($absPath, $owner, $accessList);
}

return $this->documentTemplateResponse($wopi, $params);
} catch (\Exception $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
Expand Down