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: sso setting page permission (#4527)
boojackfc4ed0351ec5
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.tsindex 6becd4e83a..906f55d073 100644--- a/frontend/src/router/index.ts+++ b/frontend/src/router/index.ts@@ -1039,6 +1039,36 @@ router.beforeEach((to, from, next) => {const currentUser = authStore.currentUser;+ if (to.name?.toString().startsWith("setting.workspace.im-integration")) {+ if (+ !hasWorkspacePermission(+ "bb.permission.workspace.manage-im-integration",+ currentUser.role+ )+ ) {+ next({+ name: "error.403",+ replace: false,+ });+ return;+ }+ }++ if (to.name?.toString().startsWith("setting.workspace.sso")) {+ if (+ !hasWorkspacePermission(+ "bb.permission.workspace.manage-sso",+ currentUser.role+ )+ ) {+ next({+ name: "error.403",+ replace: false,+ });+ return;+ }+ }+if (to.name?.toString().startsWith("setting.workspace.version-control")) {if (!hasWorkspacePermission(