mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
🐛 Fix Google Drive delete and share (#1384)
* Fix condition that never evaluated to true * Fix missing permissions for folder:share
This commit is contained in:
parent
0d273ca854
commit
58c9a92e38
|
@ -530,10 +530,10 @@ export class GoogleDrive implements INodeType {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: [
|
||||||
'file',
|
'file',
|
||||||
|
'folder',
|
||||||
],
|
],
|
||||||
operation: [
|
operation: [
|
||||||
'share',
|
'share',
|
||||||
'folder',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2067,7 +2067,8 @@ export class GoogleDrive implements INodeType {
|
||||||
|
|
||||||
returnData.push(response as IDataObject);
|
returnData.push(response as IDataObject);
|
||||||
}
|
}
|
||||||
} else if (['file', 'folder'].includes(resource)) {
|
}
|
||||||
|
if (['file', 'folder'].includes(resource)) {
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// delete
|
// delete
|
||||||
|
|
Loading…
Reference in a new issue