summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-04-28 12:33:26 +0200
committerMarcel Klehr (Rebase PR Action) <mklehr@gmx.net>2023-05-02 13:08:30 +0000
commitaf665378f8428963f899f568a6cd5de9e233e82e (patch)
treea83875d6c126eea1cb7766bbfd248a6fec7a51a0 /apps/files_sharing
parent436a08893b6cfbd81ba231bd5df787f4b0bd3874 (diff)
downloadnextcloud-server-af665378f8428963f899f568a6cd5de9e233e82e.tar.gz
nextcloud-server-af665378f8428963f899f568a6cd5de9e233e82e.zip
fix(files_sharing): Don't show copy action when !canDownload and no update permissions
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js
index 06eea5807a1..a54f2f13698 100644
--- a/apps/files_sharing/src/share.js
+++ b/apps/files_sharing/src/share.js
@@ -94,7 +94,7 @@ import { getCapabilities } from '@nextcloud/capabilities'
}
if (_.isFunction(fileData.canDownload) && !fileData.canDownload()) {
delete fileActions.actions.all.Download
- if (fileData.permissions & OC.PERMISSION_UPDATE === 0) {
+ if ((fileData.permissions & OC.PERMISSION_UPDATE) === 0) {
// neither move nor copy is allowed, remove the action completely
delete fileActions.actions.all.MoveCopy
}