Skip to content

Commit

Permalink
Merge pull request #3851 from nextcloud/backport/3765/stable25
Browse files Browse the repository at this point in the history
[stable25] fix: solve publicly shared document with hide download issue
  • Loading branch information
mejo- authored Feb 28, 2023
2 parents b0c5831 + 4f97158 commit bae4cd4
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 bae4cd4

Please sign in to comment.