diff --git a/app/controllers/user_admin_controller.rb b/app/controllers/user_admin_controller.rb --- a/app/controllers/user_admin_controller.rb +++ b/app/controllers/user_admin_controller.rb @@ -228,6 +228,7 @@ end end + # contest management def contests @@ -423,6 +424,8 @@ @action[:set_enable] = params[:enabled] @action[:enabled] = params[:enable] == "1" @action[:gen_password] = params[:gen_password] + @action[:add_group] = params[:add_group] + @action[:group_name] = params[:group_name] end if params[:commit] == "Perform" @@ -437,6 +440,11 @@ u.save end end + if @action[:add_group] + @uses.each do |u| + + end + end end end