refactor(core): Remove roleId indirection (no-changelog) (#8413)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-24 13:38:57 +01:00
committed by GitHub
parent 1affebd85e
commit d6deceacde
139 changed files with 922 additions and 1684 deletions

View File

@@ -22,7 +22,7 @@ export class EnterpriseExecutionsService {
if (!execution) return;
const relations = ['shared', 'shared.user', 'shared.role'];
const relations = ['shared', 'shared.user'];
const workflow = (await this.workflowRepository.get(
{ id: execution.workflowId },

View File

@@ -27,7 +27,7 @@ export class ExecutionsController {
private async getAccessibleWorkflowIds(user: User) {
return this.license.isSharingEnabled()
? await this.workflowSharingService.getSharedWorkflowIds(user)
: await this.workflowSharingService.getSharedWorkflowIds(user, ['owner']);
: await this.workflowSharingService.getSharedWorkflowIds(user, ['workflow:owner']);
}
@Get('/')