Skip to content

Commit

Permalink
Merge pull request #38684 from nextcloud/backport/37802/stable26
Browse files Browse the repository at this point in the history
[stable26] Sharing: Do not show copy action when user doesn't have permissions
  • Loading branch information
blizzz authored Jun 14, 2023
2 parents 1226328 + 4ab9d0f commit 99ebcb6
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 99ebcb6

Please sign in to comment.