diff --git a/controllers/contacts.go b/controllers/contacts.go index 4fb8090..b1b01ec 100644 --- a/controllers/contacts.go +++ b/controllers/contacts.go @@ -155,7 +155,9 @@ func Contacts(c *fiber.Ctx) error { db.Order( "name collate nocase asc", ).Find( - §ions, sqlFilterSections, + §ions, + "contains_contacts = ? AND id IN ?", + true, sqlFilterSections, ) return c.Render("people", fiber.Map{ diff --git a/controllers/members.go b/controllers/members.go index 33b8d94..226ca90 100644 --- a/controllers/members.go +++ b/controllers/members.go @@ -168,7 +168,9 @@ func Members(c *fiber.Ctx) error { db.Order( "name collate nocase asc", ).Find( - §ions, sqlFilterSections, + §ions, + "contains_members = ? AND id IN ?", + true, sqlFilterSections, ) return c.Render("people", fiber.Map{