mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-05 22:20:49 -04:00
add organisation invite rest and dao
This commit is contained in:
@@ -1451,6 +1451,16 @@ class InvitedOrganisationUser(db.Model):
|
||||
default=INVITE_PENDING
|
||||
)
|
||||
|
||||
def serialize(self):
|
||||
return {
|
||||
'id': self.id,
|
||||
'email_address': self.email_address,
|
||||
'invited_by': self.invited_by_id,
|
||||
'organisation': self.organisation_id,
|
||||
'created_at': self.created_at.strftime(DATETIME_FORMAT),
|
||||
'status': self.status
|
||||
}
|
||||
|
||||
|
||||
# Service Permissions
|
||||
MANAGE_USERS = 'manage_users'
|
||||
|
||||
Reference in New Issue
Block a user