Updated form and fixed existing tests.

This commit is contained in:
Nicholas Staples
2016-03-03 13:00:12 +00:00
parent 32b84f4ce2
commit 9e710711cb
7 changed files with 73 additions and 58 deletions

View File

@@ -130,8 +130,8 @@ class InvitedUser(object):
self.status = status
self.created_at = created_at
def has_permissions(self, permission):
return permission in self.permissions
def has_permissions(self, permissions):
return set(self.permissions) > set(permissions)
def serialize(self):
return {'id': self.id,