Skip to content

Commit

Permalink
Fixed #1722 -- Fixed bug in CommentManager.user_is_moderator(). Thank…
Browse files Browse the repository at this point in the history
…s, Jure Cuhalev

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 5, 2006
1 parent 4f15f10 commit a087254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/comments/models.py
Expand Up @@ -56,7 +56,7 @@ def get_list_with_karma(self, **kwargs):
def user_is_moderator(self, user): def user_is_moderator(self, user):
if user.is_superuser: if user.is_superuser:
return True return True
for g in user.group_set.all(): for g in user.groups.all():
if g.id == settings.COMMENTS_MODERATORS_GROUP: if g.id == settings.COMMENTS_MODERATORS_GROUP:
return True return True
return False return False
Expand Down

0 comments on commit a087254

Please sign in to comment.