mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
[WIP] New user can now accept invite and will be made to
register. On succesful register and verfication they will be added to service and forwarded to dashboard. Nothing is done yet with the permissions requested in the invite to the user.
This commit is contained in:
@@ -125,3 +125,12 @@ class InvitedUser(object):
|
||||
|
||||
def has_permissions(self, permission):
|
||||
return permission in self.permissions
|
||||
|
||||
def serialize(self):
|
||||
return {'id': self.id,
|
||||
'service': self.service,
|
||||
'from_user': self.from_user,
|
||||
'email_address': self.email_address,
|
||||
'permissions': self.permissions,
|
||||
'status': self.status
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user