diff --git a/pkg/models/user.go b/pkg/models/user.go index 76022ac..cc96dc5 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -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) }