refactor(core): Use DI in PermissionChecker (no-changelog) (#8344)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-16 14:15:29 +01:00
committed by GitHub
parent 420b4271a9
commit 64ceb16af6
7 changed files with 52 additions and 42 deletions

View File

@@ -795,8 +795,8 @@ async function executeWorkflow(
let data;
try {
await PermissionChecker.check(workflow, additionalData.userId);
await PermissionChecker.checkSubworkflowExecutePolicy(
await Container.get(PermissionChecker).check(workflow, additionalData.userId);
await Container.get(PermissionChecker).checkSubworkflowExecutePolicy(
workflow,
options.parentWorkflowId,
options.node,