mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Add urls for admin groups, make it more idiomatic ember
This commit is contained in:
@@ -4,6 +4,10 @@ class Admin::GroupsController < Admin::AdminController
|
||||
render_serialized(groups, BasicGroupSerializer)
|
||||
end
|
||||
|
||||
def show
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def refresh_automatic_groups
|
||||
Group.refresh_automatic_groups!
|
||||
render json: success_json
|
||||
@@ -31,7 +35,7 @@ class Admin::GroupsController < Admin::AdminController
|
||||
|
||||
def create
|
||||
group = Group.new
|
||||
group.name = params[:group][:name].strip
|
||||
group.name = (params[:group][:name] || '').strip
|
||||
group.usernames = params[:group][:usernames] if params[:group][:usernames]
|
||||
group.visible = params[:group][:visible] == "true"
|
||||
if group.save
|
||||
|
||||
Reference in New Issue
Block a user