From 4f9715892838cf8ef53b1c3792f50c5217d5e5d9 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 ea142b03a54..61e20f50e04 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -494,10 +494,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) {