fix(core): Fix user comparison in same-user subworkflow caller policy (#7913)

https://linear.app/n8n/issue/PAY-992


https://community.n8n.io/t/executing-workflow-using-owner-role-created-by-another-user-fails/33443

---------

Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
Iván Ovejero
2023-12-06 13:27:11 +01:00
committed by GitHub
parent f5502cc628
commit 92bab72cff
7 changed files with 133 additions and 28 deletions

View File

@@ -1888,6 +1888,7 @@ export interface IWorkflowExecuteAdditionalData {
workflowInfo: IExecuteWorkflowInfo,
additionalData: IWorkflowExecuteAdditionalData,
options: {
node?: INode;
parentWorkflowId?: string;
inputData?: INodeExecutionData[];
parentExecutionId?: string;

View File

@@ -13,10 +13,11 @@ export class WorkflowOperationError extends ExecutionBaseError {
description: string | undefined;
constructor(message: string, node?: INode) {
constructor(message: string, node?: INode, description?: string) {
super(message, { cause: undefined });
this.severity = 'warning';
this.name = this.constructor.name;
if (description) this.description = description;
this.node = node;
this.timestamp = Date.now();
}