mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -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
e91840a61a
commit
62fd47ee2c
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,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