Permalink
Browse files

fix #2744

  • Loading branch information...
1 parent 5b5c36d commit d4af230fe255720853406f4815ed1575e36a98cc @digi604 digi604 committed Feb 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms/middleware/toolbar.py
View
2 cms/middleware/toolbar.py
@@ -85,7 +85,7 @@ def process_response(self, request, response):
break
if found:
add_never_cache_headers(response)
- if request.user.is_staff:
+ if hasattr(request, 'user') and request.user.is_staff:
count = LogEntry.objects.filter(user=request.user).count()
if request.session.get('cms_log_entries', 0) < count:
request.session['cms_log_entries'] = count

0 comments on commit d4af230

Please sign in to comment.