Skip to content

Commit a4f197f

Browse files
authored
Merge pull request #38683 from nextcloud/backport/37802/stable25
[stable25] Sharing: Do not show copy action when user doesn't have permissions
2 parents a330459 + c936b46 commit a4f197f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

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)