From 20784d040bd5eb6f7a6b50ffc54a944a80c1d0bb Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 28 Apr 2023 12:33:26 +0200 Subject: [PATCH] fix(files_sharing): Don't show copy action when !canDownload and no update permissions Signed-off-by: Marcel Klehr --- apps/files_sharing/src/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5