From c3a388b9f554fa5872ac75cb8b6398abdc72f530 Mon Sep 17 00:00:00 2001 From: Markus Schmidt Date: Wed, 13 Oct 2021 16:51:48 +0200 Subject: [PATCH] Changed removed changes becaus https problem --- controllers/appadmin.py | 3 +-- views/appadmin.html | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/controllers/appadmin.py b/controllers/appadmin.py index ed805ac..15b5a2c 100644 --- a/controllers/appadmin.py +++ b/controllers/appadmin.py @@ -35,8 +35,7 @@ elif request.env.trusted_lan_prefix and \ 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')) - request.is_local = True + raise HTTP(200, T('appadmin is disabled because insecure channel')) if request.function == 'manage': if not 'auth' in globals() or not request.args: diff --git a/views/appadmin.html b/views/appadmin.html index 4a9952a..906bb27 100644 --- a/views/appadmin.html +++ b/views/appadmin.html @@ -1,5 +1,4 @@ {{extend 'layout.html'}} -{{request.is_local=True}}