Merge pull request #2708 from cisagov/za/2671-show-portfolios-on-user-table

Ticket #2671: Show portfolios on user table
This commit is contained in:
zandercymatics 2024-09-12 13:02:54 -06:00 committed by GitHub
commit b25a441838
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 9 deletions

View file

@ -298,6 +298,9 @@ class User(AbstractUser):
return roles
def get_portfolios(self):
return self.portfolio_permissions.all()
@classmethod
def needs_identity_verification(cls, email, uuid):
"""A method used by our oidc classes to test whether a user needs email/uuid verification