mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +02:00
updated view tests, and linted
This commit is contained in:
parent
17fa1ae008
commit
a09a53e600
2 changed files with 38 additions and 3 deletions
|
@ -259,7 +259,7 @@ class User(AbstractUser):
|
|||
|
||||
def is_portfolio_admin(self, portfolio):
|
||||
return self.has_edit_suborganization_portfolio_permission(portfolio)
|
||||
|
||||
|
||||
def get_first_portfolio(self):
|
||||
permission = self.portfolio_permissions.first()
|
||||
if permission:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue