diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 10:43:17 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 10:43:17 +0100 |
commit | 41e17e9f3e184975e8b429d3fb06d822c49068bf (patch) | |
tree | 52108d7f53558f1937d29a97abbe176cf8260365 /app/controllers | |
parent | cf5938150ba3efc38feaf28f9dee6b174893430e (diff) |
load_and_authorize_resource :sip_account, :only => [:call] #213
Diffstat (limited to 'app/controllers')
-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 |