]> source.dussan.org Git - redmine.git/commitdiff
Permit role_ids on update.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 08:52:49 +0000 (08:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 3 Jun 2017 08:52:49 +0000 (08:52 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16605 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/principal_memberships_controller.rb

index d4f4ba2ded596e7b5dabdbc905cd9f0cab2a2f3a..e7a82d5f7bab0a7ad1d4bf6f2520bb972c593c21 100644 (file)
@@ -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 }