0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-03 23:22:39 +02:00

fix group assignment

ensure that we only enumerate the teams a user is a part of if they're a member of this group
This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-30 19:33:02 -05:00
parent 3b39ce1f47
commit f733bd3253
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -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