Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: handle unlimited seat (#14411)
ecmadao106b0f4aa8e9
diff --git a/backend/enterprise/service/license.go b/backend/enterprise/service/license.goindex 86da3f43ca..4ec55a919b 100644--- a/backend/enterprise/service/license.go+++ b/backend/enterprise/service/license.go@@ -139,6 +139,9 @@ func (s *LicenseService) GetPlanLimitValue(ctx context.Context, name enterprise.// to compatible with old license.return limit}+ if subscription.Seat < 0 {+ return math.MaxInt+ }return subscription.Seat}}diff --git a/frontend/src/store/modules/v1/subscription.ts b/frontend/src/store/modules/v1/subscription.tsindex aab157ac32..61d882aaf6 100644--- a/frontend/src/store/modules/v1/subscription.ts+++ b/frontend/src/store/modules/v1/subscription.ts@@ -52,6 +52,9 @@ export const useSubscriptionV1Store = defineStore("subscription_v1", {return limit;default: {const seatCount = state.subscription?.seatCount ?? 0;+ if (seatCount < 0) {+ return Number.MAX_VALUE;+ }if (seatCount === 0) {return limit;}