This commit is contained in:
Rachid Mrad 2024-06-20 12:56:14 -04:00
parent c7544dabe2
commit 1fb31c0cd0
No known key found for this signature in database

View file

@ -153,7 +153,5 @@ class CheckOrganizationMiddleware:
home_organization_with_portfolio = reverse(
"organization-domains", kwargs={"portfolio_id": first_portfolio.id}
)
if current_path != home_organization_with_portfolio:
return HttpResponseRedirect(home_organization_with_portfolio)
return HttpResponseRedirect(home_organization_with_portfolio)
return None