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!

fix invitation

Blue Mouse9039fd5cc588
diff --git a/backend/apps/cloud/src/organisation/organisation.controller.ts b/backend/apps/cloud/src/organisation/organisation.controller.ts
index f044c0fd8..10fd3249f 100644
--- a/backend/apps/cloud/src/organisation/organisation.controller.ts
+++ b/backend/apps/cloud/src/organisation/organisation.controller.ts
@@ -203,7 +203,7 @@ export class OrganisationController {
throw new BadRequestException('You cannot invite yourself')
}
- // if (this.userService.isPaidTier(invitee)) {
+ // if (!this.userService.isPaidTier(invitee)) {
// throw new BadRequestException(
// 'You must be a paid tier subscriber to use this feature.',
// )
diff --git a/backend/apps/cloud/src/project/project.controller.ts b/backend/apps/cloud/src/project/project.controller.ts
index 5e02e189c..0f3137605 100644
--- a/backend/apps/cloud/src/project/project.controller.ts
+++ b/backend/apps/cloud/src/project/project.controller.ts
@@ -1077,7 +1077,7 @@ export class ProjectController {
throw new NotFoundException(`Project with ID ${pid} does not exist`)
}
- if (this.userService.isPaidTier(user)) {
+ if (!this.userService.isPaidTier(user)) {
throw new BadRequestException(
'You must be a paid tier subscriber to use this feature.',
)
@@ -1437,7 +1437,7 @@ export class ProjectController {
throw new BadRequestException('You cannot subscribe to your own project.')
}
- if (this.userService.isPaidTier(user)) {
+ if (!this.userService.isPaidTier(user)) {
throw new BadRequestException(
'You must be a paid tier subscriber to use this feature.',
)