mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Use DI in PermissionChecker (no-changelog) (#8344)
This commit is contained in:
committed by
GitHub
parent
420b4271a9
commit
64ceb16af6
@@ -142,7 +142,7 @@ class WorkflowRunnerProcess {
|
||||
pinData: this.data.pinData,
|
||||
});
|
||||
try {
|
||||
await PermissionChecker.check(this.workflow, userId);
|
||||
await Container.get(PermissionChecker).check(this.workflow, userId);
|
||||
} catch (error) {
|
||||
const caughtError = error as NodeOperationError;
|
||||
const failedExecutionData = generateFailedExecutionFromError(
|
||||
|
||||
Reference in New Issue
Block a user