Skip to content

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

chore: environment allow ddl/dml (#14278)

ecmadaoa765b1e0bf37
diff --git a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
index c45d6e77dd..5c7c763a30 100644
--- a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
+++ b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue
@@ -76,12 +76,12 @@
<div>
<div class="w-full inline-flex items-center gap-x-2">
<Switch
- :value="dataSourceQueryPolicy?.disallowDdl"
+ :value="!dataSourceQueryPolicy?.disallowDdl"
:text="true"
:disabled="!allowUpdatePolicy"
@update:value="
(on: boolean) => {
- updateAdminDataSourceQueryRestrctionPolicy({ disallowDdl: on });
+ updateAdminDataSourceQueryRestrctionPolicy({ disallowDdl: !on });
}
"
/>
@@ -91,12 +91,12 @@
</div>
<div class="w-full inline-flex items-center gap-x-2">
<Switch
- :value="dataSourceQueryPolicy?.disallowDml"
+ :value="!dataSourceQueryPolicy?.disallowDml"
:text="true"
:disabled="!allowUpdatePolicy"
@update:value="
(on: boolean) => {
- updateAdminDataSourceQueryRestrctionPolicy({ disallowDml: on });
+ updateAdminDataSourceQueryRestrctionPolicy({ disallowDml: !on });
}
"
/>
diff --git a/frontend/src/components/EnvironmentForm/Form.vue b/frontend/src/components/EnvironmentForm/Form.vue
index 11c76d6835..3f217367ad 100644
--- a/frontend/src/components/EnvironmentForm/Form.vue
+++ b/frontend/src/components/EnvironmentForm/Form.vue
@@ -90,7 +90,7 @@
/>
<AccessControlConfigure
- v-if="features.includes('ACCESS_CONTROL') && !create"
+ v-if="features.includes('ACCESS_CONTROL')"
:resource="environment.name"
:allow-edit="allowEdit"
/>
diff --git a/frontend/src/components/Release/ReleaseCreate/ReleaseCreate.vue b/frontend/src/components/Release/ReleaseCreate/ReleaseCreate.vue
index 87558e0e48..bb93b9bc01 100644
--- a/frontend/src/components/Release/ReleaseCreate/ReleaseCreate.vue
+++ b/frontend/src/components/Release/ReleaseCreate/ReleaseCreate.vue
@@ -24,7 +24,7 @@
</template>
<script lang="ts" setup>
-import { NInput } from "naive-ui";
+import { NInput, NButton } from "naive-ui";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
diff --git a/frontend/src/views/SettingWorkspaceVCS.vue b/frontend/src/views/SettingWorkspaceVCS.vue
index 95ea702642..d197fce99d 100644
--- a/frontend/src/views/SettingWorkspaceVCS.vue
+++ b/frontend/src/views/SettingWorkspaceVCS.vue
@@ -26,7 +26,7 @@
:striped="true"
:bordered="true"
/>
- <VCSSetupWizard class="flex-1" v-else :show-cancel="false" />
+ <VCSSetupWizard v-else class="flex-1" :show-cancel="false" />
</div>
</template>