Skip to content

Commit

Permalink
fix: welcome page user authentication check (apache#20605)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar authored and akshatsri committed Jul 19, 2022
1 parent 87eeaa9 commit 20208ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,7 @@ def show_traceback(self) -> FlaskResponse: # pylint: disable=no-self-use
@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)
Expand Down

0 comments on commit 20208ac

Please sign in to comment.