diff options
Diffstat (limited to 'rhodecode/controllers/api/api.py')
-rw-r--r-- | rhodecode/controllers/api/api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rhodecode/controllers/api/api.py b/rhodecode/controllers/api/api.py index 8a0b2dfe..c3b31c58 100644 --- a/rhodecode/controllers/api/api.py +++ b/rhodecode/controllers/api/api.py @@ -140,6 +140,9 @@ class ApiController(JSONRPCController): errors that happens """ + def _get_ip_addr(self, environ): + from rhodecode.lib.base import _get_ip_addr + return _get_ip_addr(environ) @HasPermissionAllDecorator('hg.admin') def pull(self, apiuser, repoid): |