mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
Don't assume block only applies to orgs
This commit is contained in:
parent
b788ef32ff
commit
ee2f31f32b
@ -1498,7 +1498,7 @@ func (opts *SearchUserOptions) toConds() builder.Cond {
|
|||||||
cond = cond.And(builder.In("visibility", structs.VisibleTypePublic))
|
cond = cond.And(builder.In("visibility", structs.VisibleTypePublic))
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.Actor != nil && opts.Type == UserTypeOrganization {
|
if opts.Actor != nil {
|
||||||
var exprCond builder.Cond
|
var exprCond builder.Cond
|
||||||
if setting.Database.UseMySQL {
|
if setting.Database.UseMySQL {
|
||||||
exprCond = builder.Expr("org_user.org_id = user.id")
|
exprCond = builder.Expr("org_user.org_id = user.id")
|
||||||
|
Loading…
Reference in New Issue
Block a user