display error alert for users who had DOD ID conflict when accepting workspace invitation

This commit is contained in:
dandds
2018-11-05 09:42:13 -05:00
parent 0c7fb4ca9b
commit 5fc9dbd177
3 changed files with 13 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ class WorkspaceRole(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
else:
return "Unknown errors"
@property
def has_dod_id_error(self):
return self.latest_invitation and self.latest_invitation.is_rejected_wrong_user
Index(
"workspace_role_user_workspace",

View File

@@ -37,6 +37,10 @@ class WorkspaceUser(object):
def status(self):
return self.workspace_role.display_status
@property
def has_dod_id_error(self):
return self.workspace_role.has_dod_id_error
@property
def num_environment_roles(self):
return (