summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-14 23:22:05 +0200
committerGitHub <noreply@github.com>2023-06-14 23:22:05 +0200
commit99ebcb6dc15d61fdda67665bcb15fe38b1015d28 (patch)
tree3f8f5b7db40590917cbb9be5ed33b4b67382430a /apps
parent1226328454cac5f50783f72e81cb255ae39809a3 (diff)
parent4ab9d0f698633196817ee010ba3fac1bd4ee9b75 (diff)
downloadnextcloud-server-99ebcb6dc15d61fdda67665bcb15fe38b1015d28.tar.gz
nextcloud-server-99ebcb6dc15d61fdda67665bcb15fe38b1015d28.zip
Merge pull request #38684 from nextcloud/backport/37802/stable26
[stable26] Sharing: Do not show copy action when user doesn't have permissions
Diffstat (limited to 'apps')
-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
}