Skip to content

Commit

Permalink
fix: solve publicly shared document with hide download issue
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <luka@nextcloud.com>
  • Loading branch information
luka-nextcloud authored and backportbot-nextcloud[bot] committed Feb 28, 2023
1 parent b0c5831 commit 4f97158
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Service/DocumentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4f97158

Please sign in to comment.