enabled admin/appadmin by default from trusted addresses, thanks Paolo

This commit is contained in:
mdipierro
2020-06-22 22:24:49 -07:00
parent 79f64cbe72
commit cf76978a39
3 changed files with 14 additions and 1 deletions
@@ -30,6 +30,9 @@ except:
if request.is_https:
session.secure()
elif request.env.trusted_lan_prefix and \
remote_addr.startswith(request.env.trusted_lan_prefix):
request.is_local = True
elif (remote_addr not in hosts) and (remote_addr != '127.0.0.1') and \
(request.function != 'manage'):
raise HTTP(200, T('appadmin is disabled because insecure channel'))