File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,15 @@ export const action = new FileAction({
3434 : filesStore . getNode ( dirname ( node . source ) )
3535 const parentPermissions = parentNode ?. permissions || Permission . NONE
3636
37- // Only enable if the node have the delete permission
38- // and if the parent folder allows creating files
39- return Boolean ( node . permissions & Permission . DELETE )
40- && Boolean ( parentPermissions & Permission . CREATE )
37+ // Enable if the node has update permissions or the node
38+ // has delete permission and the parent folder allows creating files
39+ return (
40+ (
41+ Boolean ( node . permissions & Permission . DELETE )
42+ && Boolean ( parentPermissions & Permission . CREATE )
43+ )
44+ || Boolean ( node . permissions & Permission . UPDATE )
45+ )
4146 } ,
4247
4348 async exec ( { nodes } ) {
You can’t perform that action at this time.
0 commit comments