Skip to content

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

@ecmadao (#14532)

ecmadaoe960f3974f9f
diff --git a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
index 585dc05e0f..c45f2fd340 100644
--- a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
+++ b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
@@ -82,7 +82,9 @@
<div>
<div class="w-full inline-flex items-center gap-x-2">
<Switch
- :value="!dataSourceQueryPolicy?.disallowDdl"
+ :value="
+ hasAccessControlFeature ? !dataSourceQueryPolicy?.disallowDdl : true
+ "
:text="true"
:disabled="!allowUpdatePolicy || !hasAccessControlFeature"
@update:value="
@@ -97,7 +99,9 @@
</div>
<div class="w-full inline-flex items-center gap-x-2">
<Switch
- :value="!dataSourceQueryPolicy?.disallowDml"
+ :value="
+ hasAccessControlFeature ? !dataSourceQueryPolicy?.disallowDml : true
+ "
:text="true"
:disabled="!allowUpdatePolicy || !hasAccessControlFeature"
@update:value="