mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: also send credentials when returning workflow via API (#4458) (no-changelog)
This commit is contained in:
@@ -89,9 +89,11 @@ EEWorkflowController.get(
|
||||
if (!userSharing && req.user.globalRole.name !== 'owner') {
|
||||
throw new ResponseHelper.ResponseError(`Forbidden.`, undefined, 403);
|
||||
}
|
||||
// @TODO: also return the credentials used by the workflow
|
||||
|
||||
return EEWorkflows.addOwnerAndSharings(workflow);
|
||||
return EEWorkflows.addCredentialsToWorkflow(
|
||||
EEWorkflows.addOwnerAndSharings(workflow),
|
||||
req.user,
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user