summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-28 06:51:07 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-28 06:51:07 +0100
commit2b94b16ee1201d15b3b9d66e142df311141a47db (patch)
tree70ea5177c88e06ca4b8ae02ed2b9fc8685e73ffd /app/models/ability.rb
parent5c87034a0448af2e2bd3f4de3bbaba4d482d1f7e (diff)
parente78e21860788ed7faabe25d645f58cd0c153dfac (diff)
Merge branch 'develop'5.1.0
Diffstat (limited to 'app/models/ability.rb')
-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 3ba4481..48cce84 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -131,7 +131,7 @@ class Ability
# SipAccounts and Phones
#
- can [:read, :call], SipAccount, :sip_accountable_type => 'User', :sip_accountable_id => user.id
+ can :read, 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