Contacts + Members: only show sections if they can contain

This commit is contained in:
William Bouzourène 2025-01-23 15:44:00 +01:00
parent 030f19b50f
commit bd32fb3a60
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
2 changed files with 6 additions and 2 deletions

View file

@ -168,7 +168,9 @@ func Members(c *fiber.Ctx) error {
db.Order(
"name collate nocase asc",
).Find(
&sections, sqlFilterSections,
&sections,
"contains_members = ? AND id IN ?",
true, sqlFilterSections,
)
return c.Render("people", fiber.Map{