Remove option to revoke from expired workspace invitation
This commit is contained in:
leigh-mil
2018-11-28 15:49:36 -05:00
committed by GitHub
3 changed files with 28 additions and 1 deletions

View File

@@ -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