mirror of
https://github.com/redmine/redmine.git
synced 2026-01-31 03:40:24 +01:00
Permit role_ids on update.
git-svn-id: http://svn.redmine.org/redmine/trunk@16605 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user