refactor(core): Use DI in PermissionChecker (no-changelog) (#8344)
This commit is contained in:
committed by
GitHub
parent
420b4271a9
commit
64ceb16af6
@@ -327,7 +327,7 @@ export class WorkflowRunner {
|
||||
);
|
||||
|
||||
try {
|
||||
await PermissionChecker.check(workflow, data.userId);
|
||||
await Container.get(PermissionChecker).check(workflow, data.userId);
|
||||
} catch (error) {
|
||||
ErrorReporter.error(error);
|
||||
// Create a failed execution with the data for the node
|
||||
|
||||
Reference in New Issue
Block a user