Skip to content

Commit 0b1e291

Browse files
fix group assignment
ensure that we only enumerate the teams a user is a part of if they're a member of this group
1 parent ea3f4a0 commit 0b1e291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/context/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func GroupAssignment(args GroupAssignmentOptions) func(ctx *Context) {
185185
if ctx.RepoGroup.IsOwner {
186186
shouldSeeAllTeams = true
187187
} else {
188-
teams, err := shared_group.GetGroupTeams(ctx, group.ID)
188+
teams, err := organization.GetUserGroupTeams(ctx, group.ID, ctx.Doer.ID)
189189
if err != nil {
190190
ctx.ServerError("GetUserTeams", err)
191191
return

0 commit comments

Comments
 (0)