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: add missing feature guard (#16511)
ecmadao8b7f2ccb8a72
diff --git a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vueindex 2061ba4123..b86a85f209 100644--- a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue+++ b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue@@ -72,13 +72,16 @@<label>{{ $t("environment.statement-execution.title") }}</label>+ <FeatureBadge+ :feature="PlanFeature.FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION"+ /></div><div><div class="w-full inline-flex items-center gap-x-2"><Switchv-model:value="state.dataSourceQueryPolicy.disallowDdl":text="true"- :disabled="!allowUpdatePolicy"+ :disabled="!allowUpdatePolicy || !hasRestrictDDLDMLFeature"/><span class="textlabel">{{ $t("environment.statement-execution.disallow-ddl") }}@@ -88,7 +91,7 @@<Switchv-model:value="state.dataSourceQueryPolicy.disallowDml":text="true"- :disabled="!allowUpdatePolicy"+ :disabled="!allowUpdatePolicy || !hasRestrictDDLDMLFeature"/><span class="textlabel">{{ $t("environment.statement-execution.disallow-dml") }}@@ -176,7 +179,11 @@ const hasRestrictQueryDataSourceFeature = computed(() =>);const hasRestrictCopyingDataFeature = computed(() =>- hasFeature(PlanFeature.FEATURE_QUERY_DATASOURCE_RESTRICTION)+ hasFeature(PlanFeature.FEATURE_RESTRICT_COPYING_DATA)+);++const hasRestrictDDLDMLFeature = computed(() =>+ hasFeature(PlanFeature.FEATURE_SQL_EDITOR_DDL_DML_RESTRICTION));const allowUpdatePolicy = computed(() => {