Skip to content

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

Only show create migration schema action button for Owner and DBA

天舟8752e85d3a72
diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vue
index 4e89e1cab6..08dc99aef5 100644
--- a/frontend/src/views/InstanceDetail.vue
+++ b/frontend/src/views/InstanceDetail.vue
@@ -161,10 +161,12 @@ export default {
});
const attentionActionText = computed((): string => {
- if (state.migrationSetupStatus == "NOT_EXIST") {
- return "Create migration schema";
- } else if (state.migrationSetupStatus == "UNKNOWN") {
- return "";
+ if (isDBAOrOwner(currentUser.value.role)) {
+ if (state.migrationSetupStatus == "NOT_EXIST") {
+ return "Create migration schema";
+ } else if (state.migrationSetupStatus == "UNKNOWN") {
+ return "";
+ }
}
return "";
});