diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-27 06:05:06 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-27 06:05:06 -0500 |
commit | 211f558a86ae30cdd5b392ab1376e1393f97e22c (patch) | |
tree | f86ec6cedf081a1a57005eca1661e9bead34e4de /app/controllers/sip_accounts_controller.rb | |
parent | ed0117210837dd1d0d2dbf403799b70225caf0cd (diff) | |
parent | 41e17e9f3e184975e8b429d3fb06d822c49068bf (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/controllers/sip_accounts_controller.rb')
-rw-r--r-- | app/controllers/sip_accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb index ef1aab8..621bd3c 100644 --- a/app/controllers/sip_accounts_controller.rb +++ b/app/controllers/sip_accounts_controller.rb @@ -1,7 +1,7 @@ class SipAccountsController < ApplicationController load_resource :user load_resource :tenant - load_resource :sip_account, :only => [:call] + load_and_authorize_resource :sip_account, :only => [:call] load_and_authorize_resource :sip_account, :through => [:user, :tenant ] before_filter :set_and_authorize_parent |