Skip to content

Commit

Permalink
Merge 1b6b8f6 into e4fa0da
Browse files Browse the repository at this point in the history
  • Loading branch information
rizumu committed Apr 30, 2015
2 parents e4fa0da + 1b6b8f6 commit 8b436b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pinax/teams/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,15 @@ def is_owner_or_manager(self, user):
user=user
).exists()

def is_member(self, user):
return self.members.filter(user=user).exists()

def is_manager(self, user):
return self.managers.filter(user=user).exists()

def is_owner(self, user):
return self.owners.filter(user=user).exists()

def is_on_team(self, user):
return self.acceptances.filter(user=user).exists()

Expand Down

0 comments on commit 8b436b9

Please sign in to comment.