From f733bd32530a34d68d6f97a8f332f7cbaadad0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sun, 30 Nov 2025 19:33:02 -0500 Subject: [PATCH] fix group assignment ensure that we only enumerate the teams a user is a part of if they're a member of this group --- services/context/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/context/group.go b/services/context/group.go index dfbedb3ddf..0d55ab8c4d 100644 --- a/services/context/group.go +++ b/services/context/group.go @@ -185,7 +185,7 @@ func GroupAssignment(args GroupAssignmentOptions) func(ctx *Context) { if ctx.RepoGroup.IsOwner { shouldSeeAllTeams = true } else { - teams, err := shared_group.GetGroupTeams(ctx, group.ID) + teams, err := organization.GetUserGroupTeams(ctx, group.ID, ctx.Doer.ID) if err != nil { ctx.ServerError("GetUserTeams", err) return