Skip to content

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

Allow non-owner/dba to access environment page.

天舟e0c87cc62330
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index cdd2426d9d..4cfe62fb46 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -589,7 +589,7 @@ router.beforeEach((to, from, next) => {
}
const loginUser: Principal = store.getters["auth/currentUser"]();
- if (to.name === "workspace.environment" || to.name === "workspace.instance") {
+ if (to.name === "workspace.instance") {
if (isDBAOrOwner(loginUser.role)) {
next();
} else {
@@ -650,6 +650,7 @@ router.beforeEach((to, from, next) => {
to.name === "workspace.project" ||
to.name === "workspace.database" ||
to.name === "workspace.archive" ||
+ to.name === "workspace.environment" ||
to.name?.toString().startsWith("setting")
) {
next();