Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #1722 -- Fixed bug in CommentManager.user_is_moderator(). Thank…

…s, Jure Cuhalev

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a0872543a7d1cbcb4576ef3d41ef413edf89e3c1 1 parent 4f15f10
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/comments/models.py
View
2  django/contrib/comments/models.py
@@ -56,7 +56,7 @@ def get_list_with_karma(self, **kwargs):
def user_is_moderator(self, user):
if user.is_superuser:
return True
- for g in user.group_set.all():
+ for g in user.groups.all():
if g.id == settings.COMMENTS_MODERATORS_GROUP:
return True
return False
Please sign in to comment.
Something went wrong with that request. Please try again.