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: user name checks (#16101)
boojack57437e0345e2
diff --git a/frontend/src/store/modules/user.ts b/frontend/src/store/modules/user.tsindex 57c56dc1f9..8698477f8a 100644--- a/frontend/src/store/modules/user.ts+++ b/frontend/src/store/modules/user.ts@@ -9,6 +9,7 @@ import {SYSTEM_BOT_USER_NAME,isValidUserName,unknownUser,+ userBindingPrefix,} from "@/types";import { State, stateToJSON } from "@/types/proto/v1/common";import type { UpdateUserRequest, User } from "@/types/proto/v1/user_service";@@ -139,7 +140,12 @@ export const useUserStore = defineStore("user", () => {const batchGetUsers = async (userNameList: string[]) => {const distinctList = uniq(userNameList)- .filter(Boolean)+ .filter(+ (name) =>+ Boolean(name) &&+ (name.startsWith(userNamePrefix) ||+ name.startsWith(userBindingPrefix))+ ).map((name) => ensureUserFullName(name)).filter((name) =>