Skip to content

Commit

Permalink
Merge pull request #37802 from nextcloud/fix/37729
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr authored May 3, 2023
2 parents d95ccfd + ff1e792 commit 545de25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files_sharing/src/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading

0 comments on commit 545de25

Please sign in to comment.