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:
freya
2022-11-30 13:00:28 +00:00
committed by GitHub
parent ada73ed41d
commit ddf787c087
5 changed files with 274 additions and 172 deletions

View 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);
}
}