|
|
|
@ -85,7 +85,7 @@ class PermittedParams < Struct.new(:params, :user) |
|
|
|
|
def custom_field_type |
|
|
|
|
params.require(:type) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def enumeration_type |
|
|
|
|
params.require(:type) |
|
|
|
|
end |
|
|
|
@ -116,6 +116,10 @@ class PermittedParams < Struct.new(:params, :user) |
|
|
|
|
permitted_params |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def member |
|
|
|
|
params.require(:member).permit(*self.class.permitted_attributes[:member]) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def planning_element_type |
|
|
|
|
params.require(:planning_element_type).permit(*self.class.permitted_attributes[:planning_element_type]) |
|
|
|
|
end |
|
|
|
@ -274,6 +278,8 @@ class PermittedParams < Struct.new(:params, :user) |
|
|
|
|
:membership => [ |
|
|
|
|
:project_id, |
|
|
|
|
:role_ids => []]], |
|
|
|
|
:member => [ |
|
|
|
|
:role_ids], |
|
|
|
|
:new_work_package => [ |
|
|
|
|
:subject, |
|
|
|
|
:description, |
|
|
|
@ -363,7 +369,7 @@ class PermittedParams < Struct.new(:params, :user) |
|
|
|
|
:redirect_existing_links ], |
|
|
|
|
:wiki_content => [ |
|
|
|
|
:comments, |
|
|
|
|
:text, |
|
|
|
|
:text, |
|
|
|
|
:lock_version ], |
|
|
|
|
:move_to => [ :move_to ] |
|
|
|
|
} |
|
|
|
|