mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
@ -23,12 +23,12 @@ class Admin::GroupsController < Admin::AdminController
|
||||
def update
|
||||
group = Group.find(params[:id].to_i)
|
||||
|
||||
group.alias_level = params[:group][:alias_level].to_i if params[:group][:alias_level].present?
|
||||
|
||||
if group.automatic
|
||||
# we can only change the alias level on automatic groups
|
||||
group.alias_level = params[:group][:alias_level]
|
||||
else
|
||||
group.usernames = params[:group][:usernames]
|
||||
group.alias_level = params[:group][:alias_level]
|
||||
group.name = params[:group][:name] if params[:group][:name]
|
||||
end
|
||||
group.visible = params[:group][:visible] == "true"
|
||||
|
Reference in New Issue
Block a user