Skip to content

Commit

Permalink
Fix password in resources controller. Fixes #610
Browse files Browse the repository at this point in the history
  • Loading branch information
k41n committed Jun 2, 2016
1 parent 36478f1 commit 0c2c5dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/resources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class ResourcesController < ApplicationController
before_filter :check_permission

def new

@resource = Resource.new
@resource.customer_id = params[:customer_id]

Expand Down Expand Up @@ -138,6 +139,6 @@ def log_resource_changes(resource)

def resource_attributes
params.require(:resource).permit :name, :customer_id, :parent_id, :resource_type_id, :notes, :active,
:attribute_values => [:id, :resource_type_attribute_id, :value]
:attribute_values => [:id, :resource_type_attribute_id, :value, :password]
end
end

0 comments on commit 0c2c5dc

Please sign in to comment.