Minor search query bugfix

This commit is contained in:
Noah Petherbridge 2024-07-16 17:07:41 -07:00
parent 80cc5a97ee
commit dbeb5060e4

View File

@ -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)
}