Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

verify project ownership on org endpoints

Blue Mouse63eb76edcb44
diff --git a/backend/apps/cloud/src/project/project.controller.ts b/backend/apps/cloud/src/project/project.controller.ts
index 89324e5fb..979259b84 100644
--- a/backend/apps/cloud/src/project/project.controller.ts
+++ b/backend/apps/cloud/src/project/project.controller.ts
@@ -910,6 +910,11 @@ export class ProjectController {
this.organisationService.validateManageAccess(organisation, uid)
+ const project = await this.projectService.getFullProject(
+ addProjectDTO.projectId,
+ )
+ this.projectService.allowedToManage(project, uid)
+
return this.projectService.addProjectToOrganisation(
organisation.id,
addProjectDTO.projectId,