Minor search query bugfix
This commit is contained in:
parent
80cc5a97ee
commit
dbeb5060e4
|
@ -427,7 +427,7 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
|
|||
}
|
||||
|
||||
if search.InnerCircle {
|
||||
wheres = append(wheres, "inner_circle = ? OR is_admin = ?")
|
||||
wheres = append(wheres, "(inner_circle = ? OR is_admin = ?)")
|
||||
placeholders = append(placeholders, true, true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user