fix: Change the currentUserHasAccess flag behavior (no-changelog) (#4763)

This commit is contained in:
Omar Ajoue
2022-11-29 15:54:24 +01:00
committed by GitHub
parent 92c77127d6
commit 47b9d22ed5
3 changed files with 5 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ export class EEWorkflowsService extends WorkflowsService {
currentUser: User,
): Promise<void> {
workflow.usedCredentials = [];
const userCredentials = await EECredentials.getAll(currentUser);
const userCredentials = await EECredentials.getAll(currentUser, { disableGlobalRole: true });
const credentialIdsUsedByWorkflow = new Set<number>();
workflow.nodes.forEach((node) => {
if (!node.credentials) {