Skip to content

Commit

Permalink
Merge pull request #795 from Natay/spamfix
Browse files Browse the repository at this point in the history
spam tab fix
  • Loading branch information
ialbert committed Apr 6, 2021
2 parents 46a0a29 + 6b395ba commit 4435ca4
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 4435ca4

Please sign in to comment.