mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Redirects to login page if user not logged in at welcome page (#1723)
This commit is contained in:
parent
25acb78071
commit
7f4f250970
@ -2598,6 +2598,8 @@ class Superset(BaseSupersetView):
|
||||
@expose("/welcome")
|
||||
def welcome(self):
|
||||
"""Personalized welcome page"""
|
||||
if not g.user or not g.user.get_id():
|
||||
return redirect(appbuilder.get_url_for_login)
|
||||
return self.render_template('superset/welcome.html', utils=utils)
|
||||
|
||||
@has_access
|
||||
|
Loading…
Reference in New Issue
Block a user