mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
Update mixins.py
This commit is contained in:
parent
029582925f
commit
7afb6a3e36
1 changed files with 0 additions and 6 deletions
|
@ -100,13 +100,7 @@ class DomainPermission(PermissionsLoginMixin):
|
|||
if DomainInformation.objects.filter(id=pk).exists():
|
||||
requested_domain = DomainInformation.objects.get(id=pk)
|
||||
|
||||
# If no domain_application object exists and we are
|
||||
# coming from the manage_domain dashboard, this is likely
|
||||
# a transition domain.
|
||||
domain_application = requested_domain.domain_application
|
||||
if not hasattr(domain_application, "status"):
|
||||
return True
|
||||
|
||||
if domain_application.status not in valid_domain_statuses:
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue