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:
parent
3b39ce1f47
commit
f733bd3253
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user