mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2026-01-13 05:31:51 -08:00
clans: all clan types should be searchable
This commit is contained in:
parent
3a7b2951d3
commit
aefe5f6d53
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user