Skip to content

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

Only whitelist instance dashboard for DBA. Instance detail page still needs to check the actual id.

天舟432a9c9afdb3
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index d66146b65e..9613bad4a3 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -602,10 +602,7 @@ router.beforeEach((to, from, next) => {
return;
}
- if (
- to.name === "workspace.environment" ||
- to.name?.toString().startsWith("workspace.instance")
- ) {
+ if (to.name === "workspace.environment" || to.name === "workspace.instance") {
if (isDBAOrOwner(loginUser.role)) {
next();
} else {