Skip to content

Commit

Permalink
spam tab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Natay committed Apr 6, 2021
1 parent 46a0a29 commit 6b395ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biostar/forum/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_posts(request, topic=""):
if post_type:
posts = posts.filter(type=post_type)

elif topic == SHOW_SPAM and (user.is_anonymous and user.profile.is_moderator):
if topic == SHOW_SPAM and (user.is_authenticated and user.profile.is_moderator):
posts = get_spam(request)

elif topic == OPEN:
Expand Down

0 comments on commit 6b395ba

Please sign in to comment.