mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-19 16:04:38 +02:00
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:
commit
b25a441838
4 changed files with 50 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue