Commit c94cc35a authored by jplang's avatar jplang
Browse files

Permit role_ids on update.

git-svn-id: https://svn.redmine.org/redmine/trunk@16605 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b6dc5b52
......@@ -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 }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment