We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa6628 commit f48fa85Copy full SHA for f48fa85
1 file changed
apps/files/src/actions/renameAction.ts
@@ -37,10 +37,15 @@ export const action: IFileAction = {
37
: filesStore.getNode(dirname(node.source))
38
const parentPermissions = parentNode?.permissions || Permission.NONE
39
40
- // Only enable if the node have the delete permission
41
- // and if the parent folder allows creating files
42
- return Boolean(node.permissions & Permission.DELETE)
43
- && Boolean(parentPermissions & Permission.CREATE)
+ // Enable if the node has update permissions or the node
+ // has delete permission and the parent folder allows creating files
+ return (
+ (
44
+ Boolean(node.permissions & Permission.DELETE)
45
+ && Boolean(parentPermissions & Permission.CREATE)
46
+ )
47
+ || Boolean(node.permissions & Permission.UPDATE)
48
49
},
50
51
async exec({ nodes }) {
0 commit comments