clans: all clan types should be searchable

This commit is contained in:
Spirtix 2025-12-31 10:50:02 +01:00
parent 3a7b2951d3
commit aefe5f6d53

View File

@ -315,8 +315,6 @@ public class GroupController : Controller {
if (target == null) return Ok(new GetGroupsResult { Success = false });
if (target.GroupMembership?.Group == null) return Ok(new GetGroupsResult { Success = true });
groupsQuery = groupsQuery.Where(g => g.GroupID == target.GroupMembership.Group.GroupID);
} else {
groupsQuery = groupsQuery.Where(g => g.Type == GroupType.Public || g.Type == GroupType.MembersOnly);
}
if (request.Name != null)