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