Prevent archieved download on secure view
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
f60fcbdb7c
commit
2212b2a534
|
@ -523,11 +523,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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue