display error alert for users who had DOD ID conflict when accepting workspace invitation
This commit is contained in:
@@ -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",
|
||||
|
@@ -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 (
|
||||
|
Reference in New Issue
Block a user