diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-26 16:37:14 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-26 16:37:14 -0500 |
commit | ba0dc7a5cefe825fe0b09e2d6ccf9821bb20c7f9 (patch) | |
tree | 7560e0bdeeb2170e86b17743f05f3f22bf409b2e /app/models | |
parent | 22bd2d6fb05e488527beb9c0e134c1fa47673a35 (diff) |
manage ringtones ability added
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ability.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 690ee76..e885c53 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -131,6 +131,7 @@ class Ability can :read, PhoneNumber, :id => sip_account.phone_number_ids can :manage, CallForward, :call_forwardable_id => sip_account.phone_number_ids can :manage, Ringtone, :ringtoneable_type => 'PhoneNumber', :ringtoneable_id => sip_account.phone_number_ids + can :manage, Ringtone, :ringtoneable_type => 'SipAccount', :ringtoneable_id => sip_account.id can [:read, :destroy, :call] , CallHistory, :id => sip_account.call_history_ids end can :read, Phone, :phoneable_type => 'User', :phoneable_id => user.id |