summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-05-03 10:57:41 +0200
committerGitHub <noreply@github.com>2023-05-03 10:57:41 +0200
commit545de25eec505c42f247acc2aa8f1638a83bb749 (patch)
tree96a277281ad494508db9d54b5e840ebfb207aa1e /apps/files_sharing
parentd95ccfd3ae125ad3fb0e9239bc4498b7fe51d8d1 (diff)
parentff1e792ec2b21a482477e06b4d6b63ab387e632e (diff)
downloadnextcloud-server-545de25eec505c42f247acc2aa8f1638a83bb749.tar.gz
nextcloud-server-545de25eec505c42f247acc2aa8f1638a83bb749.zip
Merge pull request #37802 from nextcloud/fix/37729
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
}