Skip to content

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

chore: hide instance entry in header for enterprise version (#2817)

boojack3eb099897ca1
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 4219f8eb02..e4dc1f97ad 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -38,6 +38,7 @@
>
<router-link
+ v-if="shouldShowInstanceEntry"
to="/instance"
class="bar-link px-2 py-2 rounded-md"
:class="getRouteLinkClass('/instance')"
@@ -156,6 +157,7 @@ import {
useSettingStore,
useSubscriptionStore,
useInboxStore,
+ hasFeature,
} from "@/store";
import { storeToRefs } from "pinia";
@@ -197,6 +199,14 @@ export default defineComponent({
return isDBAOrOwner(currentUser.value.role);
});
+ const shouldShowInstanceEntry = computed(() => {
+ // In enterprise version, we don't allow developers to view instance.
+ return (
+ !hasFeature("bb.feature.dba-workflow") ||
+ isDBAOrOwner(currentUser.value.role)
+ );
+ });
+
const isDevFeatures = computed((): boolean => {
return isDev();
});
@@ -307,6 +317,7 @@ export default defineComponent({
return {
state,
getRouteLinkClass,
+ shouldShowInstanceEntry,
logoUrl,
currentUser,
currentPlan,