From cdf443c86e09887975d13c76c2ac6007c6e78514 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 5 Aug 2024 22:07:56 +0200 Subject: [PATCH] portalapi: fix portal_user_intro not being sent when authenticated, hence not displayed at all --- src/portal.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/portal.py b/src/portal.py index 254ae589b..dbd47ac05 100644 --- a/src/portal.py +++ b/src/portal.py @@ -118,8 +118,11 @@ def portal_public(): portal_settings = _get_portal_settings() - if "portal_user_intro" in portal_settings: - del portal_settings["portal_user_intro"] + try: + Auth().get_session_cookie() + except Exception: + if "portal_user_intro" in portal_settings: + del portal_settings["portal_user_intro"] # Prevent leaking the list of users for infos in portal_settings["apps"].values():