Prevent archieved download on secure view

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-02-07 12:45:29 +01:00
parent d2d7e37b7b
commit 35d4ca4d5d
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -529,11 +529,14 @@ class ShareController extends AuthPublicShareController {
} }
} }
if (!$this->validateShare($share)) { if (!$this->validateShare($share)) {
throw new NotFoundException(); throw new NotFoundException();
} }
if ($share->getHideDownload()) {
return new NotFoundResponse();
}
$userFolder = $this->rootFolder->getUserFolder($share->getShareOwner()); $userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());
$originalSharePath = $userFolder->getRelativePath($share->getNode()->getPath()); $originalSharePath = $userFolder->getRelativePath($share->getNode()->getPath());