mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
Merge pull request #57532 from nextcloud/backport/57174/stable31
[stable31] fix(files): Inhibit download for non downloadable nodes in all contexts
This commit is contained in:
commit
d8a14a084b
3 changed files with 4 additions and 4 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
|
||||
}
|
||||
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue