Skip to content

Commit

Permalink
[#2939] Fix user is in group
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 15, 2012
1 parent 4009b4a commit af95d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/model/user.py
Expand Up @@ -151,7 +151,7 @@ def number_administered_packages(self):
return q.count()

def is_in_group(self, group):
return group in self.get_groups()
return group in self.get_group_ids()

def is_in_groups(self, groupids):
''' Given a list of group ids, returns True if this user is in
Expand Down

0 comments on commit af95d0d

Please sign in to comment.