Update src/registrar/registrar_middleware.py

Co-authored-by: Matt-Spence <matthewswSpence@gmail.com>
This commit is contained in:
zandercymatics 2024-08-27 13:26:13 -06:00 committed by GitHub
parent 990e16246d
commit 1fa80e8193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,7 +146,7 @@ class CheckPortfolioMiddleware:
# set the portfolio in the session if it is not set
if "portfolio" not in request.session or request.session["portfolio"] is None:
# if user is a multiple portfolio
# if multiple portfolios are allowed for this user
if flag_is_active(request, "multiple_portfolios"):
# NOTE: we will want to change later to have a workflow for selecting
# portfolio and another for switching portfolio; for now, select first