diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-14 23:22:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 23:22:05 +0200 |
commit | 99ebcb6dc15d61fdda67665bcb15fe38b1015d28 (patch) | |
tree | 3f8f5b7db40590917cbb9be5ed33b4b67382430a /apps | |
parent | 1226328454cac5f50783f72e81cb255ae39809a3 (diff) | |
parent | 4ab9d0f698633196817ee010ba3fac1bd4ee9b75 (diff) | |
download | nextcloud-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.js | 2 |
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 } |