Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/files_sharing/lib/Controller/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public function downloadShare($token, $files = null, $path = '') {
return new DataResponse('Share has no read permission');
}

if ($share->getHideDownload()) {
return new DataResponse('Share has no download permission');
}

if (!$this->validateShare($share)) {
throw new NotFoundException();
}
Expand Down