summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/controllers/main.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2017-01-03 16:53:49 +0100
committerRaphael Collet <rco@openerp.com>2017-01-03 16:53:49 +0100
commit80c46ee4fc273f59823821dcdc98bcc6b7fdeeaf (patch)
tree76d10b363ff68240236249ba42756e77a2ee13d5 /addons/payment_authorize/controllers/main.py
parent19fce206ac420e03465316b8d8db1bd54ea4c013 (diff)
parent172a767e5f7add9c5e806e00e0146dc5f09e806b (diff)
[MERGE] base: tighten access rights of ir.* models
Diffstat (limited to 'addons/payment_authorize/controllers/main.py')
-rw-r--r--addons/payment_authorize/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_authorize/controllers/main.py b/addons/payment_authorize/controllers/main.py
index 5fc8ba87a69..d88a74554b9 100644
--- a/addons/payment_authorize/controllers/main.py
+++ b/addons/payment_authorize/controllers/main.py
@@ -24,7 +24,7 @@ class AuthorizeController(http.Controller):
if post:
request.env['payment.transaction'].sudo().form_feedback(post, 'authorize')
return_url = post.pop('return_url', '/')
- base_url = request.env['ir.config_parameter'].get_param('web.base.url')
+ base_url = request.env['ir.config_parameter'].sudo().get_param('web.base.url')
# Authorize.Net is expecting a response to the POST sent by their server.
# This response is in the form of a URL that Authorize.Net will pass on to the
# client's browser to redirect them to the desired location need javascript.