mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
cleanup
This commit is contained in:
parent
2ec3fa774d
commit
58957e1250
5 changed files with 5 additions and 13 deletions
|
@ -292,8 +292,6 @@ class User(AbstractUser):
|
|||
|
||||
def is_org_user(self, request):
|
||||
has_organization_feature_flag = flag_is_active(request, "organization_feature")
|
||||
user_portfolios = Portfolio.objects.filter(creator=self)
|
||||
|
||||
user_portfolios_exist = user_portfolios.exists()
|
||||
user_portfolios_exist = Portfolio.objects.filter(creator=self).exists()
|
||||
|
||||
return has_organization_feature_flag and user_portfolios_exist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue