Skip to content

Commit 2afdf7b

Browse files
committed
fix(files_sharing): Don't show copy action when !canDownload and no update permissions
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent cf20825 commit 2afdf7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/src/share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import { getCapabilities } from '@nextcloud/capabilities'
9494
}
9595
if (_.isFunction(fileData.canDownload) && !fileData.canDownload()) {
9696
delete fileActions.actions.all.Download
97-
if (fileData.permissions & OC.PERMISSION_UPDATE === 0) {
97+
if ((fileData.permissions & OC.PERMISSION_UPDATE) === 0) {
9898
// neither move nor copy is allowed, remove the action completely
9999
delete fileActions.actions.all.MoveCopy
100100
}

0 commit comments

Comments
 (0)