|
|
|
@ -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, |
|
|
|
|