mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix: hide rename action is trashbin
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
This commit is contained in:
parent
b61757a9e7
commit
56eff9d09d
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export const action = new FileAction({
|
|||
return false
|
||||
}
|
||||
// Only enable if all nodes have the delete permission
|
||||
return nodes.every((node) => Boolean(node.permissions & Permission.DELETE))
|
||||
return nodes.every((node) => Boolean(node.permissions & Permission.DELETE) && Boolean(node.permissions & Permission.UPDATE))
|
||||
},
|
||||
|
||||
async exec(node: Node) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue