mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 21:34:50 +00:00
20 lines
401 B
Ruby
20 lines
401 B
Ruby
class Admin::GroupsController < Admin::AdminController
|
|
def index
|
|
groups = Group.order(:name).all
|
|
render_serialized(groups, AdminGroupSerializer)
|
|
end
|
|
|
|
def refresh_automatic_groups
|
|
Group.refresh_automatic_groups!
|
|
render json: "ok"
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def users
|
|
group = Group.find(params[:group_id].to_i)
|
|
render_serialized(group.users, BasicUserSerializer)
|
|
end
|
|
end
|