portal/src/auth.py
def authorize_ip(ip):
	"check if ip belongs to internal network"
	for net in networks:
		if ip.startswith(net):
			return 1
check if ip belongs to internal network
check if ip belongs to internal network
check if ip belongs to internal network
def authorize_ip(ip):
	for net in networks:
		if ip.startswith(net):
			return 1
def authorize_ip ( ip ) : for net in networks : if ip . startswith ( net ) : return 1
check if ip belongs to internal network
check if ip belongs to internal network
"check if ip belongs to internal network"
ip