Merge pull request #19349 from nextcloud/bugfix/noid/prevent-download-on-secure-view
Prevent archieved download on secure view
This commit is contained in:
commit
302ea0650e
|
@ -541,11 +541,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