From aebbbc253b37a8576148b3d2171fb2895462acbc Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 16 Aug 2009 15:09:08 +0100 Subject: [PATCH 1/1] Fix typo in code to let auth users view non-published pages --- sommitrealweird/bpcms/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sommitrealweird/bpcms/views.py b/sommitrealweird/bpcms/views.py index bde19cc..fd23428 100644 --- a/sommitrealweird/bpcms/views.py +++ b/sommitrealweird/bpcms/views.py @@ -35,7 +35,7 @@ def document_view(request, slug=None, folders=None): except: try: folder = Folder.objects.get(slug__exact=slug, parent__exact=folder) - if not request.user.isauthenticated(): + if not request.user.is_authenticated(): doc = Document.objects.get(slug__exact='index', islive__exact=True, folder__exact=folder) else: doc = Document.objects.get(slug__exact='index', folder__exact=folder) -- 2.39.5