Add is_revokable property to Invitation

This commit is contained in:
leigh-mil
2018-11-26 15:38:32 -05:00
parent 923313dafa
commit 35b3565c0f
2 changed files with 5 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