mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: limit the number of group members returned for automatic groups
This commit is contained in:
parent
f18d30f1d7
commit
9c1341b554
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,9 @@ class GroupsController < ApplicationController
|
||||||
|
|
||||||
def members
|
def members
|
||||||
group = find_group(:group_id)
|
group = find_group(:group_id)
|
||||||
render_serialized(group.users.order('username_lower asc').to_a, GroupUserSerializer)
|
members = group.users.order('username_lower asc')
|
||||||
|
members = members.limit(200) if group.automatic
|
||||||
|
render_serialized(members.to_a, GroupUserSerializer)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue