diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 17:31:13 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 17:31:13 +0100 |
commit | fc535da83c53f37fbc03caf72f61c01494ba6048 (patch) | |
tree | 8e545072f939fd7c2ca8bd568e54a4f6ec317974 | |
parent | 5d5f3be8e3dd76d88bfca87c6af5175d39e6049c (diff) |
load_resource :sip_account, :only => [:call]
-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 022858c..ef1aab8 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 + load_resource :sip_account, :only => [:call] load_and_authorize_resource :sip_account, :through => [:user, :tenant ] before_filter :set_and_authorize_parent |