diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-04-28 12:33:26 +0200 |
---|---|---|
committer | Marcel Klehr (Rebase PR Action) <mklehr@gmx.net> | 2023-05-02 13:08:30 +0000 |
commit | af665378f8428963f899f568a6cd5de9e233e82e (patch) | |
tree | a83875d6c126eea1cb7766bbfd248a6fec7a51a0 /apps/files_sharing | |
parent | 436a08893b6cfbd81ba231bd5df787f4b0bd3874 (diff) | |
download | nextcloud-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.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 } |