From 12cbb2deff696ba6851c9b41ba894e5056a2958c Mon Sep 17 00:00:00 2001
From: Mateus Rambo Strey <mars11@inf.ufpr.br>
Date: Thu, 10 Mar 2016 11:07:21 -0300
Subject: [PATCH] fix management user controller

---
 app/controllers/management/users_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/management/users_controller.rb b/app/controllers/management/users_controller.rb
index c95e0fd21..692d84980 100644
--- a/app/controllers/management/users_controller.rb
+++ b/app/controllers/management/users_controller.rb
@@ -102,7 +102,7 @@ class Management::UsersController < ManagementController
 
   # Never trust parameters from the scary internet, only allow the white list through.
   def user_params
-    params.require(:user).permit(:name, :email, :password, :password_confirmation, role_ids: [], :terms_of_service)
+    params.require(:user).permit(:name, :email, :password, :password_confirmation, :terms_of_service, role_ids: [])
   end
 
   def set_roles
-- 
GitLab