refactor(core): Use DI in PermissionChecker (no-changelog) (#8344)
This commit is contained in:
committed by
GitHub
parent
420b4271a9
commit
64ceb16af6
@@ -185,7 +185,7 @@ export class Worker extends BaseCommand {
|
||||
);
|
||||
|
||||
try {
|
||||
await PermissionChecker.check(workflow, workflowOwner.id);
|
||||
await Container.get(PermissionChecker).check(workflow, workflowOwner.id);
|
||||
} catch (error) {
|
||||
if (error instanceof NodeOperationError) {
|
||||
const failedExecution = generateFailedExecutionFromError(
|
||||
|
||||
Reference in New Issue
Block a user