From: Brett Parker Date: Sun, 16 Aug 2009 14:09:08 +0000 (+0100) Subject: Fix typo in code to let auth users view non-published pages X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/aebbbc253b37a8576148b3d2171fb2895462acbc?hp=df318ffde3168c6166a2ef133624b78c4b67aca0 Fix typo in code to let auth users view non-published pages --- 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)