> new_controller_object_from_params and _for_collection needs to be aware of the
> different options as those get the parent object from its instance variable.
I have a basic patch done, I sent a pull request.
I still have one problem
Permission denied: index not allowed for #<User id: 689986156, login:
"dgm", email: "dgm", person_id: 1180170431, crypted_password:
"00742970dc9e6319f8019fd54864d3ea740f04b1", salt:
"7e3041ebc2fc05a40c60028e2c4901a81035d3cd", created_at: "2009-11-19
19:06:11", updated_at: "2009-11-20 19:06:11", remember_token: nil,
remember_token_expires_at: nil, activation_code:
"8f24789ae988411ccf33ab0c30fe9106fab32e9a", activated_at: nil> on
#<PhoneNumber id: nil, phone_number: nil, phone_type: nil, private:
nil, note: nil, updated_by: nil, created_at: nil, updated_at: nil>.
role :staff do
has_permission_on [:people], :to =>
[:index, :show, :edit, :update, :create, :new] do
if_attribute :user => is { user }
end
has_permission_on [:phone_numbers], :to =>
[:index, :show, :edit, :update, :create, :new] do
if_attribute :people => {:user => is { user }}
end
end
I'm probably missing something obvious.