summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-03 16:48:55 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-03 16:48:55 +0700
commit7f0ba3734ffbfa22813e199fbf8a556750a350f7 (patch)
tree977df6670ba3da5da664a04febbabd04a498b5a2
parentc07f23f2bb11cb97b258554b2a45f9b2c8e7fd34 (diff)
Fix error whitelist
-rw-r--r--indoteknik_api/controllers/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index cfb2eaa5..2002d7eb 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -24,7 +24,7 @@ class Controller(http.Controller):
except:
remote_address = wsgienv['REMOTE_ADDR']
_logger.info("API Request from %s" % remote_address)
- allowed_ip_address = request.env['ir.config_parameter'].get_param('api_allowed_ip_address')
+ allowed_ip_address = request.env['ir.config_parameter'].sudo().get_param('api_allowed_ip_address')
if remote_address in allowed_ip_address.split('-'):
request.session.authenticate(config.get('db_name'), 'it@fixcomart.co.id', 'Fixcomart378')
return True