This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 92bf1b8ef6 fix: welcome page user authentication check (#20605)
92bf1b8ef6 is described below
commit 92bf1b8ef6b42c9624876a2433077173818795b6
Author: Daniel Vaz Gaspar <[email protected]>
AuthorDate: Tue Jul 5 17:04:47 2022 +0100
fix: welcome page user authentication check (#20605)
---
superset/views/core.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index 1625a691aa..ffaa4204c4 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2675,7 +2675,7 @@ class Superset(BaseSupersetView): # pylint:
disable=too-many-public-methods
@expose("/welcome/")
def welcome(self) -> FlaskResponse:
"""Personalized welcome page"""
- if not get_user_id():
+ if not g.user or not get_user_id():
if conf["PUBLIC_ROLE_LIKE"]:
return self.render_template("superset/public_welcome.html")
return redirect(appbuilder.get_url_for_login)