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: check sync permission (#10810)
ecmadao080d3a4f08d1
diff --git a/frontend/src/components/SlowQuery/Panel/SlowQueryPanel.vue b/frontend/src/components/SlowQuery/Panel/SlowQueryPanel.vueindex f932b1c0db..6095639a6e 100644--- a/frontend/src/components/SlowQuery/Panel/SlowQueryPanel.vue+++ b/frontend/src/components/SlowQuery/Panel/SlowQueryPanel.vue@@ -13,6 +13,7 @@{{ $t("common.configure") }}</NButton><NButton+ v-if="hasSyncPermission"type="primary":disabled="!allowSync":loading="syncing"@@ -139,6 +140,10 @@ const slowQueryLogList = shallowRef<ComposedSlowQueryLog[]>([]);const selectedSlowQueryLog = shallowRef<ComposedSlowQueryLog>();const syncing = shallowRef(false);+const hasSyncPermission = computed(() =>+ hasWorkspacePermissionV2(currentUser.value, "bb.instances.sync")+);+const searchScopes = computed(() => {return [...props.readonlySearchScopes, ...state.params.scopes];});