Show More
@@ -1235,11 +1235,12 b' class AuthUser(object):' | |||
|
1235 | 1235 | allowed_ips = AuthUser.get_allowed_ips( |
|
1236 | 1236 | user_id, cache=True, inherit_from_default=inherit_from_default) |
|
1237 | 1237 | if check_ip_access(source_ip=ip_addr, allowed_ips=allowed_ips): |
|
1238 |
log.debug('IP:%s is in range of %s' % ( |
|
|
1238 | log.debug('IP:%s for user %s is in range of %s' % ( | |
|
1239 | ip_addr, user_id, allowed_ips)) | |
|
1239 | 1240 | return True |
|
1240 | 1241 | else: |
|
1241 | log.info('Access for IP:%s forbidden, ' | |
|
1242 | 'not in %s' % (ip_addr, allowed_ips)) | |
|
1242 | log.info('Access for IP:%s forbidden for user %s, ' | |
|
1243 | 'not in %s' % (ip_addr, user_id, allowed_ips)) | |
|
1243 | 1244 | return False |
|
1244 | 1245 | |
|
1245 | 1246 | def __repr__(self): |
General Comments 0
You need to be logged in to leave comments.
Login now