Commit 00bc63c7 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed config usage

parent ccda66d1
......@@ -146,7 +146,7 @@ def checkperm(perms, username=None, password=None):
if 'X-Real-IP' not in request.headers:
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment