summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:43:17 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:43:17 +0100
commit41e17e9f3e184975e8b429d3fb06d822c49068bf (patch)
tree52108d7f53558f1937d29a97abbe176cf8260365
parentcf5938150ba3efc38feaf28f9dee6b174893430e (diff)
load_and_authorize_resource :sip_account, :only => [:call] #213
-rw-r--r--app/controllers/sip_accounts_controller.rb2
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