summaryrefslogtreecommitdiffstats
path: root/app/controllers/principal_memberships_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:52:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:52:49 +0000
commit6c2e387bbd99b3a4d8faa2ba89df7871398ec387 (patch)
treee555a92ce1a904df36926593ff3f0c8dab7aafe6 /app/controllers/principal_memberships_controller.rb
parent8dca980a35dd39ea322a55c510d8b2c3f191c459 (diff)
downloadredmine-6c2e387bbd99b3a4d8faa2ba89df7871398ec387.tar.gz
redmine-6c2e387bbd99b3a4d8faa2ba89df7871398ec387.zip
Permit role_ids on update.
git-svn-id: http://svn.redmine.org/redmine/trunk@16605 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/principal_memberships_controller.rb')
-rw-r--r--app/controllers/principal_memberships_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/principal_memberships_controller.rb b/app/controllers/principal_memberships_controller.rb
index d4f4ba2de..e7a82d5f7 100644
--- a/app/controllers/principal_memberships_controller.rb
+++ b/app/controllers/principal_memberships_controller.rb
@@ -45,7 +45,7 @@ class PrincipalMembershipsController < ApplicationController
end
def update
- @membership.attributes = params[:membership]
+ @membership.attributes = params.require(:membership).permit(:role_ids => [])
@membership.save
respond_to do |format|
format.html { redirect_to_principal @principal }