From 394e2b7881edbbff95d664f9438f19bb11822ce8 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 7 Sep 2017 15:07:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5=20=D0=BE=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2.=20=D0=AD=D1=82=D0=BE=20=D0=BD=D1=83=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=B2=D1=8B=D0=BA=D0=B0=D1=82=D0=B8=D1=82=D1=8C,=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=BA=20=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=20=D0=B1?= =?UTF-8?q?=D1=8B=D1=81=D1=82=D1=80=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- access/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/access/middleware.py b/access/middleware.py index ed280f9..f225bda 100644 --- a/access/middleware.py +++ b/access/middleware.py @@ -4,8 +4,7 @@ from django.http import HttpResponseForbidden class CheckPerm(object): @staticmethod def process_request(request): - if '/admin' in request.path or "/management" in request.path \ - or '/analytics' in request.path: + if '/admin' in request.path or '/analytics' in request.path: if not request.user.is_authenticated(): return HttpResponseForbidden()