From ee2f31f32b155930de76d5c60a1eb45bfa1ed9ad Mon Sep 17 00:00:00 2001 From: Manush Dodunekov Date: Thu, 9 Jan 2020 08:43:15 +0100 Subject: [PATCH] Don't assume block only applies to orgs --- models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user.go b/models/user.go index 165befb62e..611c5f0516 100644 --- a/models/user.go +++ b/models/user.go @@ -1498,7 +1498,7 @@ func (opts *SearchUserOptions) toConds() builder.Cond { cond = cond.And(builder.In("visibility", structs.VisibleTypePublic)) } - if opts.Actor != nil && opts.Type == UserTypeOrganization { + if opts.Actor != nil { var exprCond builder.Cond if setting.Database.UseMySQL { exprCond = builder.Expr("org_user.org_id = user.id")