Commit c2d74031 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Fix variable nas_type

parent b22cda43
......@@ -148,6 +148,7 @@ def authorize(data):
nas = data.get('NAS-IP-Address', data.get('NAS-Identifier', None))
nas_instance = find_nas_from_request(nas)
# Toutes les reuquètes non proxifiées
nas_type = None
if nas_instance:
nas_type = Nas.objects.filter(nas_type=nas_instance.type).first()
if not nas_type or nas_type.port_access_mode == '802.1X':
Markdown is supported
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