diff rhodecode/controllers/api/api.py @ 3125:9b92cf5a0cca beta

Added UserIpMap interface for allowed IP addresses and IP restriction access ref #264 IP restriction for users and user groups
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 30 Dec 2012 23:06:03 +0100
parents ebd76deee70d
children 703070153bc1
line wrap: on
line diff
--- a/rhodecode/controllers/api/api.py	Thu Dec 20 20:05:54 2012 +0100
+++ b/rhodecode/controllers/api/api.py	Sun Dec 30 23:06:03 2012 +0100
@@ -140,6 +140,9 @@
     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):