mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
fix(files_sharing): Don't show copy action when !canDownload and no update permissions
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
436a08893b
commit
af665378f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue