mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(core): Prevent unauthorised workflow termination (#16405)
This commit is contained in:
@@ -96,7 +96,9 @@ export class ExecutionsController {
|
||||
|
||||
if (workflowIds.length === 0) throw new NotFoundError('Execution not found');
|
||||
|
||||
return await this.executionService.stop(req.params.id);
|
||||
const executionId = req.params.id;
|
||||
|
||||
return await this.executionService.stop(executionId, workflowIds);
|
||||
}
|
||||
|
||||
@Post('/:id/retry')
|
||||
|
||||
Reference in New Issue
Block a user