feat(core): Allow transferring credentials from any project to any team project (#9563)

This commit is contained in:
Danny Martini
2024-06-04 13:54:48 +02:00
committed by GitHub
parent 245c63f216
commit 202c91e7ed
8 changed files with 371 additions and 19 deletions

View File

@@ -249,14 +249,14 @@ export class EnterpriseWorkflowService {
]);
NotFoundError.isDefinedAndNotNull(
workflow,
`Could not find workflow with the id "${workflowId}". Make sure you have the permission to delete it.`,
`Could not find workflow with the id "${workflowId}". Make sure you have the permission to move it.`,
);
// 2. get owner-sharing
const ownerSharing = workflow.shared.find((s) => s.role === 'workflow:owner')!;
NotFoundError.isDefinedAndNotNull(
ownerSharing,
`Could not find owner for workflow ${workflow.id}`,
`Could not find owner for workflow "${workflow.id}"`,
);
// 3. get source project