fix haystack search

This commit is contained in:
slav0nic 2011-10-11 13:35:07 +03:00
parent 18ec1439ff
commit f46fce38d7
3 changed files with 7 additions and 7 deletions
djangobb_forum

View file

@ -178,7 +178,7 @@ def search(request):
if 'topics' in request.GET['show_as']:
topics = []
topics_to_exclude = []
topics_to_exclude = SQ()
for post in posts:
if post.object.topic not in topics:
if post.object.topic.forum.category.has_access(request.user):