Skip to content

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

chore: disable tenant mode project (#2993)

ecmadao323896386dab
diff --git a/server/webhook.go b/server/webhook.go
index d5a3299858..b9e228d666 100644
--- a/server/webhook.go
+++ b/server/webhook.go
@@ -269,13 +269,14 @@ func (s *Server) sqlAdviceForFile(
zap.String("vcs", string(fileInfo.repository.VCS.Type)),
)
- if fileInfo.repository.Project.TenantMode == api.TenantModeTenant && !s.feature(api.FeatureMultiTenancy) {
+ // TODO: support tenant mode project
+ if fileInfo.repository.Project.TenantMode == api.TenantModeTenant {
return []advisor.Advice{
{
Status: advisor.Warn,
Code: advisor.Unsupported,
Title: "Tenant mode is not supported",
- Content: fmt.Sprintf("Project %s a tenant mode project. Please upgrade your subscription to support this feature.", fileInfo.repository.Project.Name),
+ Content: fmt.Sprintf("Project %s a tenant mode project.", fileInfo.repository.Project.Name),
Line: 1,
},
}, nil