Merge pull request #458 from dod-ccpo/remove-revoke-from-expired-invite-#161933129
Remove option to revoke from expired workspace invitation
This commit is contained in:
@@ -87,3 +87,7 @@ class Invitation(Base, TimestampsMixin, AuditableMixin):
|
||||
@property
|
||||
def user_name(self):
|
||||
return self.workspace_role.user.full_name
|
||||
|
||||
@property
|
||||
def is_revokable(self):
|
||||
return self.is_pending and not self.is_expired
|
||||
|
Reference in New Issue
Block a user