fix(core): Ensure executions list is properly filtered for all users (#4765)
Also updates executions API to have EE version
This commit is contained in:
13
packages/cli/src/executions/executions.service.ee.ts
Normal file
13
packages/cli/src/executions/executions.service.ee.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { User } from '@/databases/entities/User';
|
||||
import { getSharedWorkflowIds } from '@/WorkflowHelpers';
|
||||
import { ExecutionsService } from './executions.service';
|
||||
|
||||
export class EEExecutionsService extends ExecutionsService {
|
||||
/**
|
||||
* Function to get the workflow Ids for a User regardless of role
|
||||
*/
|
||||
static async getWorkflowIdsForUser(user: User): Promise<number[]> {
|
||||
// Get all workflows
|
||||
return getSharedWorkflowIds(user);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user