summaryrefslogtreecommitdiff
path: root/app/controllers/users_groups_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/users_groups_controller.rb')
-rw-r--r--app/controllers/users_groups_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/users_groups_controller.rb b/app/controllers/users_groups_controller.rb
index b9bdc189522..a35a12a866b 100644
--- a/app/controllers/users_groups_controller.rb
+++ b/app/controllers/users_groups_controller.rb
@@ -14,7 +14,7 @@ class UsersGroupsController < ApplicationController
def update
@member = @group.users_groups.find(params[:id])
- @member.update_attributes(params[:users_group])
+ @member.update_attributes(member_params)
end
def destroy
@@ -41,4 +41,8 @@ class UsersGroupsController < ApplicationController
return render_404
end
end
+
+ def member_params
+ params.require(:users_group).permit(:group_access, :user_id)
+ end
end