📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix
Blue Mousea5a8f80b9a32
diff --git a/package.json b/package.jsonindex 433f68d4d..fdcdf87b4 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "swetrix-api",- "version": "1.0.0",+ "version": "1.1.0","description": "Swetrix Analytics API","author": "Andrii R. <[email protected]>","private": true,diff --git a/src/project/project.controller.ts b/src/project/project.controller.tsindex d15c1cf31..3975b8802 100644--- a/src/project/project.controller.ts+++ b/src/project/project.controller.ts@@ -642,6 +642,10 @@ export class ProjectController {throw new NotFoundException(`Share with ID ${shareId} does not exist`)}+ if (share.project?.admin?.id !== uid) {+ throw new NotFoundException(`You are not allowed to edit this share`)+ }+this.projectService.allowedToManage(share.project, uid, user.roles)const { role } = shareDTO