mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 19:39:23 +02:00
Logic tweak
This commit is contained in:
parent
4021bb24d2
commit
5e16da6734
1 changed files with 1 additions and 2 deletions
|
@ -151,8 +151,7 @@ class CheckPortfolioMiddleware:
|
|||
if request.user.has_domains_portfolio_permission():
|
||||
portfolio_redirect = reverse("domains")
|
||||
else:
|
||||
# View organization is the lowest access
|
||||
portfolio_redirect = reverse("organization")
|
||||
portfolio_redirect = reverse("no-portfolio-domains")
|
||||
|
||||
return HttpResponseRedirect(portfolio_redirect)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue