portalapi: fix portal_user_intro not being sent when authenticated, hence not displayed at all

This commit is contained in:
Alexandre Aubin 2024-08-05 22:07:56 +02:00
parent bc93a2e079
commit cdf443c86e

View file

@ -118,6 +118,9 @@ def portal_public():
portal_settings = _get_portal_settings()
try:
Auth().get_session_cookie()
except Exception:
if "portal_user_intro" in portal_settings:
del portal_settings["portal_user_intro"]