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}}