Skip to content

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

fix: disallow ddl/dml should in the paid plan (#14530)

ecmadao20c15a37fc20
diff --git a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
index 6b4affb1a0..585dc05e0f 100644
--- a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
+++ b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
@@ -77,13 +77,14 @@
<label>
{{ $t("environment.statement-execution.title") }}
</label>
+ <FeatureBadge feature="bb.feature.access-control" />
</div>
<div>
<div class="w-full inline-flex items-center gap-x-2">
<Switch
:value="!dataSourceQueryPolicy?.disallowDdl"
:text="true"
- :disabled="!allowUpdatePolicy"
+ :disabled="!allowUpdatePolicy || !hasAccessControlFeature"
@update:value="
(on: boolean) => {
updateAdminDataSourceQueryRestrctionPolicy({ disallowDdl: !on });
@@ -98,7 +99,7 @@
<Switch
:value="!dataSourceQueryPolicy?.disallowDml"
:text="true"
- :disabled="!allowUpdatePolicy"
+ :disabled="!allowUpdatePolicy || !hasAccessControlFeature"
@update:value="
(on: boolean) => {
updateAdminDataSourceQueryRestrctionPolicy({ disallowDml: !on });