From c677b6acd6e0aa47bbed277374faf0cfe828e263 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Mon, 6 Feb 2023 08:16:24 +0100 Subject: [PATCH] fix: solve publicly shared document with hide download issue Signed-off-by: Luka Trovic --- lib/Service/DocumentService.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index a6f5d612c97..b71cfa3ce81 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -495,10 +495,6 @@ public function checkSharePermissions($shareToken, $permission = Constants::PERM if (($share->getPermissions() & $permission) === 0) { throw new NotFoundException(); } - - if ($share->getHideDownload()) { - throw new NotPermittedException(); - } } public function hasUnsavedChanges(Document $document) {