Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: hide rename action is trashbin
Signed-off-by: Hamza <[email protected]>
  • Loading branch information
hamza221 authored and backportbot[bot] committed Jul 11, 2025
commit e167dc1dd7ac19ee1f98675a3e612ff5320781cc
2 changes: 1 addition & 1 deletion apps/files/src/actions/renameAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down