summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-26 18:21:52 -0500
committerPeter Kozak <spag@golwen.net>2013-02-26 18:21:52 -0500
commit22eb173c74893114350e4b5351a58b48673f63b3 (patch)
tree21eaf837cf1670729d61284246fd30d965c339ad /app
parentba0dc7a5cefe825fe0b09e2d6ccf9821bb20c7f9 (diff)
call ability added to SipAccount
Diffstat (limited to 'app')
-rw-r--r--app/models/ability.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index e885c53..be64528 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -126,7 +126,7 @@ class Ability
# SipAccounts and Phones
#
- can :read, SipAccount, :sip_accountable_type => 'User', :sip_accountable_id => user.id
+ can [:read, :call], SipAccount, :sip_accountable_type => 'User', :sip_accountable_id => user.id
user.sip_accounts.each do |sip_account|
can :read, PhoneNumber, :id => sip_account.phone_number_ids
can :manage, CallForward, :call_forwardable_id => sip_account.phone_number_ids