summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2010-01-09 20:11:01 +0000
committerAdrian Holovaty <adrian@holovaty.com>2010-01-09 20:11:01 +0000
commit933b9e8de7cfae0a271283c11cccbb9897e30a46 (patch)
treebc5933279820ae40b5deaa7ab86c330077913f39 /docs
parent8a109a7bc8e66548e9c47e3aa0cb5a6ea8c02e34 (diff)
Fixed #6991 -- Removed some redundant user.is_authenticated() calls in various places. Thanks, alexkoshelev, Liang Feng and Ivan Sagalaev
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index 9874135b02..6b120eac38 100644
--- a/docs/topics/auth.txt
+++ b/docs/topics/auth.txt
@@ -1031,7 +1031,7 @@ checks to make sure the user is logged in and has the permission
``polls.can_vote``::
def my_view(request):
- if not (request.user.is_authenticated() and request.user.has_perm('polls.can_vote')):
+ if not request.user.has_perm('polls.can_vote'):
return HttpResponse("You can't vote in this poll.")
# ...