summaryrefslogtreecommitdiffstats
path: root/models/user/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user/search.go')
-rw-r--r--models/user/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user/search.go b/models/user/search.go
index a81cee1c22..1b65dcb12d 100644
--- a/models/user/search.go
+++ b/models/user/search.go
@@ -59,7 +59,7 @@ func (opts *SearchUserOptions) toSearchQueryBase() *xorm.Session {
}
if opts.Actor != nil {
- var exprCond builder.Cond = builder.Expr("org_user.org_id = `user`.id")
+ exprCond := builder.Expr("org_user.org_id = `user`.id")
// If Admin - they see all users!
if !opts.Actor.IsAdmin {