diff options
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
| -rw-r--r-- | indoteknik_api/controllers/controller.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py index 261adf36..cfb2eaa5 100644 --- a/indoteknik_api/controllers/controller.py +++ b/indoteknik_api/controllers/controller.py @@ -25,7 +25,7 @@ class Controller(http.Controller): 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') - if remote_address in allowed_ip_address.split(','): + if remote_address in allowed_ip_address.split('-'): request.session.authenticate(config.get('db_name'), 'it@fixcomart.co.id', 'Fixcomart378') return True return False |
