diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-08 05:50:02 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-08 05:50:02 -0500 |
commit | 4d7d5ad238990582d6c90a25272f2141ea9a3b28 (patch) | |
tree | 135c475c7b0b78a8a4f78e47c97040202fbc9d1d /app/models/ability.rb | |
parent | 7149ddd968787eca9d05feea315d4fa3774fe54e (diff) |
toggle action added to acd_agents
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 3cd1d4d..fe67547 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -170,6 +170,11 @@ class Ability can :manage, Ringtone, :ringtoneable_type => 'SipAccount', :ringtoneable_id => user.sip_account_ids can :create, Ringtone + # User can read and toggle status of ACD agents + # + can :read, AcdAgent, :destination_type => 'SipAccount', :destination_id => user.sip_account_ids + can :toggle, AcdAgent, :destination_type => 'SipAccount', :destination_id => user.sip_account_ids + # SoftkeyFunctions # can :read, SoftkeyFunction |