mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 02:33:50 +02:00
fix bug where builder.In cond for groups and teams was not placed into the builder.Or cond
This commit is contained in:
parent
79d8cacf00
commit
b6f3c1623b
@ -42,8 +42,9 @@ func GetTeamRepositories(ctx context.Context, opts *SearchTeamRepoOptions) (Repo
|
||||
builder.In("id", builder.Select("repo_id").
|
||||
From("team_repo").
|
||||
Where(builder.Eq{"team_id": opts.TeamID}),
|
||||
)),
|
||||
builder.In("id", ReposAccessibleByGroupTeamBuilder(opts.TeamID)),
|
||||
),
|
||||
builder.In("id", ReposAccessibleByGroupTeamBuilder(opts.TeamID)),
|
||||
),
|
||||
)
|
||||
}
|
||||
if opts.PageSize > 0 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user