Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update (#9969)

ecmadaoef5da42467d4
diff --git a/backend/enterprise/service/license.go b/backend/enterprise/service/license.go
index 561cfe6b7d..d7cd6ae82a 100644
--- a/backend/enterprise/service/license.go
+++ b/backend/enterprise/service/license.go
@@ -64,9 +64,11 @@ func (s *LicenseService) StoreLicense(ctx context.Context, patch *enterprise.Sub
// LoadSubscription will load subscription.
func (s *LicenseService) LoadSubscription(ctx context.Context) *enterprise.Subscription {
- if s.cachedSubscription != nil && s.cachedSubscription.IsExpired() {
- // refresh expired subscription
- s.cachedSubscription = nil
+ if s.cachedSubscription != nil {
+ if s.cachedSubscription.Plan == api.FREE || s.cachedSubscription.IsExpired() {
+ // refresh expired subscription
+ s.cachedSubscription = nil
+ }
}
if s.cachedSubscription != nil {
return s.cachedSubscription
diff --git a/frontend/src/views/BannerUpgradeSubscription.vue b/frontend/src/views/BannerUpgradeSubscription.vue
index 770cafd778..268382a385 100644
--- a/frontend/src/views/BannerUpgradeSubscription.vue
+++ b/frontend/src/views/BannerUpgradeSubscription.vue
@@ -150,7 +150,9 @@ watch(
set.add("bb.feature.watermark");
}
if (settingV1Store.workspaceProfileSetting?.disallowSignup ?? false) {
- set.add("bb.feature.disallow-signup");
+ if (!actuatorStore.isSaaSMode) {
+ set.add("bb.feature.disallow-signup");
+ }
}
if (settingV1Store.workspaceProfileSetting?.require2fa ?? false) {
set.add("bb.feature.2fa");