Skip to content
Browse files

Bug fixes.

  • Loading branch information...
1 parent f57eaf1 commit 5bed5af0d3afce88332799ed8d161e3e683a978c @zgohr committed Jun 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 mezzanine_pageview/middleware.py
  2. +1 −1 mezzanine_pageview/page_processors.py
View
2 mezzanine_pageview/middleware.py
@@ -19,4 +19,4 @@ def process_request(self, request):
raise Http404
except Page.DoesNotExist:
pass
- return {}
+ return None
View
2 mezzanine_pageview/page_processors.py
@@ -14,7 +14,7 @@ def can_access(user, page):
return page_groups.count() == 0
else:
groups = page_groups.filter(group__in=user.groups.all())
- return page_groups.count() == 0 or groups.count > 0
+ return page_groups.count() == 0 or groups.count() > 0
"""
@processor_for(Page)

0 comments on commit 5bed5af

Please sign in to comment.
Something went wrong with that request. Please try again.