Skip to content
Snippets Groups Projects
Commit 00bc63c7 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed config usage

parent ccda66d1
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ def checkperm(perms, username=None, password=None):
if 'X-Real-IP' not in request.headers:
continue
ip = ip_address(request.headers['X-Real-IP'])
for net in RWTH_IP_RANGES:
for net in config['RWTH_IP_RANGES']:
if ip in ip_network(net):
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment