Skip to content

Commit

Permalink
🐛 fix access for instance owner to credentials (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble authored Mar 3, 2022
1 parent 30abe3b commit a62c2d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/src/UserManagement/UserManagementHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export async function checkPermissionsForExecution(
workflow: Workflow,
userId: string,
): Promise<boolean> {
const user = await getUserById(userId);
if (user.globalRole.name === 'owner') {
return true;
}

const credentialIds = new Set();
const nodeNames = Object.keys(workflow.nodes);
// Iterate over all nodes
Expand Down

0 comments on commit a62c2d4

Please sign in to comment.