Убрал некоторые ограничения прав. Это нужно выкатить, как можно быстрее

remotes/origin/pm_task_31703
Andrey 8 years ago
parent 701407f98a
commit 394e2b7881
  1. 3
      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()

Loading…
Cancel
Save