From e2dda2727a135ccc682aa9ca075e5d0ca5398630 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 334d4df2016..4dc27ac8406 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -517,10 +517,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) {