Skip to content

Commit

Permalink
Merge pull request #3765 from nextcloud/bug/publicly-shared-hide-down…
Browse files Browse the repository at this point in the history
…load-file-issue

fix: solve publicly shared document with hide download issue
  • Loading branch information
luka-nextcloud authored Feb 28, 2023
2 parents 7a3658a + e2dda27 commit bf6c6bb
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 @@ -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) {
Expand Down

0 comments on commit bf6c6bb

Please sign in to comment.