From a4b7c234f0c5bbe7b0bf7862a9a2730f75fe9a25 Mon Sep 17 00:00:00 2001 From: chove Date: Sat, 10 Jun 2006 23:43:42 +0200 Subject: [PATCH] on autorise l'acces au page via cli darcs-hash:20060610214342-4ec08-3b43f07b2d38d5d7673bec76334efa25d0a281d4.gz --- wiki/wikiacl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/wikiacl.py b/wiki/wikiacl.py index 23fcf669..34554f4a 100644 --- a/wiki/wikiacl.py +++ b/wiki/wikiacl.py @@ -242,7 +242,7 @@ class AccessControlList: #### HACK SAUVAGE 3/4 def _requete_interne(self, request): try: - if is_crans(request.remote_addr) and (request.remote_addr != u'138.231.136.3' or is_crans(request.mpyreq.headers_in['X-Forwarded-For'].split(",")[-1].strip())): + if str(request.__class__)=='MoinMoin.request.RequestCLI' or is_crans(request.remote_addr) and (request.remote_addr != u'138.231.136.3' or is_crans(request.mpyreq.headers_in['X-Forwarded-For'].split(",")[-1].strip())): return True except: pass