mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-27 22:10:26 +02:00
refactor(core): Use DI in PermissionChecker (no-changelog) (#8344)
This commit is contained in:
@@ -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