Skip to content

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

chore: skip permission checks to prevent potential race condition in group list fetching (#17175)

boojacked2adab38e4a
diff --git a/frontend/src/store/modules/v1/group.ts b/frontend/src/store/modules/v1/group.ts
index e694523d5b..16a134b989 100644
--- a/frontend/src/store/modules/v1/group.ts
+++ b/frontend/src/store/modules/v1/group.ts
@@ -52,12 +52,11 @@ export const useGroupStore = defineStore("group", () => {
};
const fetchGroupList = async () => {
- if (!hasWorkspacePermissionV2("bb.groups.list")) {
- return [];
- }
-
const request = create(ListGroupsRequestSchema, {});
- const { groups } = await groupServiceClientConnect.listGroups(request);
+ // Ignore errors and silent the request.
+ const { groups } = await groupServiceClientConnect.listGroups(request, {
+ contextValues: createContextValues().set(silentContextKey, true),
+ });
resetCache();
for (const group of groups) {
await composeGroup(group);