mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Merge pull request #3475 from alphagov/request-invite
Allow invite form to be pre-populated with an existing user
This commit is contained in:
@@ -160,6 +160,12 @@ class Service(JSONModel):
|
||||
def invited_users(self):
|
||||
return InvitedUsers(self.id)
|
||||
|
||||
def invite_pending_for(self, email_address):
|
||||
return email_address.lower() in (
|
||||
invited_user.email_address.lower()
|
||||
for invited_user in self.invited_users
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def active_users(self):
|
||||
return Users(self.id)
|
||||
|
||||
Reference in New Issue
Block a user