From dbeb5060e49ba173c3cb80939bb2b8f3e33d4cac Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 16 Jul 2024 17:07:41 -0700 Subject: [PATCH] Minor search query bugfix --- pkg/models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }