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

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

No files matched your search

+1 -1
View File
@@ -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(