Merge pull request #171 from stefan0xC/remove-org-seat-limit

disable org seat limit validation
This commit is contained in:
Mathijs van Veluw 2024-07-08 20:46:31 +02:00 committed by GitHub
commit 4fd3595f31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,11 +23,23 @@ index 7de0c98cd5..f842ad907b 100644
return canAccessBillingTab(organization);
}
diff --git a/apps/web/src/app/admin-console/organizations/members/components/member-dialog/validators/org-seat-limit-reached.validator.ts b/apps/web/src/app/admin-console/organizations/members/components/member-dialog/validators/org-seat-limit-reached.validator.ts
index 8b521e2c17..9112c18195 100644
--- a/apps/web/src/app/admin-console/organizations/members/components/member-dialog/validators/org-seat-limit-reached.validator.ts
+++ b/apps/web/src/app/admin-console/organizations/members/components/member-dialog/validators/org-seat-limit-reached.validator.ts
@@ -17,6 +17,7 @@ export function orgSeatLimitReachedValidator(
errorMessage: string,
): ValidatorFn {
return (control: AbstractControl): ValidationErrors | null => {
+ return null; // disable orgSeatLimitReachedValidator
if (control.value === "" || !control.value) {
return null;
}
diff --git a/apps/web/src/app/admin-console/organizations/members/people.component.ts b/apps/web/src/app/admin-console/organizations/members/people.component.ts
index af04d83c34..2ae49ea968 100644
index f385583445..c6f08a32e5 100644
--- a/apps/web/src/app/admin-console/organizations/members/people.component.ts
+++ b/apps/web/src/app/admin-console/organizations/members/people.component.ts
@@ -190,11 +190,7 @@ export class PeopleComponent extends BasePeopleComponent<OrganizationUserView> {
@@ -193,11 +193,7 @@ export class PeopleComponent extends BasePeopleComponent<OrganizationUserView> {
.find((p) => p.organizationId === this.organization.id);
this.orgResetPasswordPolicyEnabled = resetPasswordPolicy?.enabled;