Skip to content

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

chore: minor updates (#15565)

ecmadaob26ba1bf49e5
diff --git a/frontend/src/components/Member/MemberDataTable/cells/UserOperationsCell.vue b/frontend/src/components/Member/MemberDataTable/cells/UserOperationsCell.vue
index 898f5c44ee..6520fce66e 100644
--- a/frontend/src/components/Member/MemberDataTable/cells/UserOperationsCell.vue
+++ b/frontend/src/components/Member/MemberDataTable/cells/UserOperationsCell.vue
@@ -33,8 +33,7 @@
import { PencilIcon, Trash2Icon } from "lucide-vue-next";
import { NButton, NPopconfirm } from "naive-ui";
import { computed } from "vue";
-import { unknownUser } from "@/types";
-import { UserType } from "@/types/proto/v1/user_service";
+import { unknownUser, SYSTEM_BOT_USER_NAME } from "@/types";
import { State } from "@/types/proto/v1/common";
import type { MemberBinding } from "../../types";
@@ -54,7 +53,8 @@ const allowUpdate = computed(() => {
}
const user = props.binding.user ?? unknownUser();
- if (user.userType === UserType.SYSTEM_BOT) {
+ if (user.name === SYSTEM_BOT_USER_NAME) {
+ // Cannot edit the member binding for [email protected], but can edit allUsers
return false;
}
return user.state === State.ACTIVE;
diff --git a/frontend/src/utils/pagination.ts b/frontend/src/utils/pagination.ts
index 66c999669f..51167897b6 100644
--- a/frontend/src/utils/pagination.ts
+++ b/frontend/src/utils/pagination.ts
@@ -1,8 +1,3 @@
-import { useCurrentUserV1 } from "@/store";
-
export const getDefaultPagination = () => {
- if (useCurrentUserV1().value.email.endsWith("@bytebase.com")) {
- return 1;
- }
return 50;
};
diff --git a/frontend/src/utils/permission.ts b/frontend/src/utils/permission.ts
index 1f14607bf7..5e7f4d32f3 100644
--- a/frontend/src/utils/permission.ts
+++ b/frontend/src/utils/permission.ts
@@ -1,7 +1,6 @@
-const PERMISSION_PREFIX = "bb.";
-
// displayPermissionTitle return the formatted permission title.
-// e.g., bb.databases.get -> databases.get
+// Some API users may need to check permissions from the UI.
+// We will show the raw permission for now till we support more readable UX and have docs for these permissions.
export const displayPermissionTitle = (permission: string): string => {
- return permission.slice(PERMISSION_PREFIX.length);
+ return permission;
};