mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:57:53 +08:00
Work in progress: Groups Page
This commit is contained in:
@ -1,9 +1,15 @@
|
||||
class GroupsController < ApplicationController
|
||||
|
||||
def show
|
||||
group = Group.where(name: params.require(:id)).first
|
||||
guardian.ensure_can_see!(group)
|
||||
render_serialized(group, BasicGroupSerializer)
|
||||
end
|
||||
|
||||
def members
|
||||
group = Group.where(name: params.require(:group_id)).first
|
||||
guardian.ensure_can_see!(group)
|
||||
render_serialized(group.users.order('username_lower asc').limit(200).to_a, BasicUserSerializer)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user