Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update changelog permission (#14807)
boojack5940e420840c
diff --git a/frontend/src/components/Changelog/ChangelogDetail.vue b/frontend/src/components/Changelog/ChangelogDetail.vueindex 49b58b5cec..ba2b4a5a68 100644--- a/frontend/src/components/Changelog/ChangelogDetail.vue+++ b/frontend/src/components/Changelog/ChangelogDetail.vue@@ -202,8 +202,7 @@ const state = reactive<LocalState>({const { database } = useDatabaseV1ByName(props.database);const hasPermission = computed(() =>- // TODO: update permissions.- hasProjectPermissionV2(database.value.projectEntity, "bb.changeHistories.get")+ hasProjectPermissionV2(database.value.projectEntity, "bb.changelogs.get"));const changelogName = computed(() => {diff --git a/frontend/src/components/Database/context.ts b/frontend/src/components/Database/context.tsindex b1a8240c23..8bc1f27196 100644--- a/frontend/src/components/Database/context.ts+++ b/frontend/src/components/Database/context.ts@@ -114,7 +114,7 @@ export const provideDatabaseDetailContext = ();const allowListChangelogs = computed(() =>- checkPermission("bb.changeHistories.list")+ checkPermission("bb.changelogs.list"));const allowListSlowQueries = computed(() =>diff --git a/frontend/src/types/iam/permission.ts b/frontend/src/types/iam/permission.tsindex b11d1e5410..bfbd35ace4 100644--- a/frontend/src/types/iam/permission.ts+++ b/frontend/src/types/iam/permission.ts@@ -9,8 +9,8 @@ export type Permission =| "bb.branches.get"| "bb.branches.list"| "bb.branches.update"- | "bb.changeHistories.get"- | "bb.changeHistories.list"+ | "bb.changelogs.get"+ | "bb.changelogs.list"| "bb.vcsConnectors.create"| "bb.vcsConnectors.delete"| "bb.vcsConnectors.get"