mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(files): Inhibit download for non downloadable nodes in all contexts
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
dc323ee347
commit
4a021c3379
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ export default defineComponent({
|
|||
const metaKeyPressed = event.ctrlKey || event.metaKey || event.button === 1
|
||||
if (metaKeyPressed || !this.defaultFileAction) {
|
||||
// If no download permission, then we can not allow to download (direct link) the files
|
||||
if (isPublicShare() && !isDownloadable(this.source)) {
|
||||
if (!isDownloadable(this.source)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue