Skip to content

Commit

Permalink
Redirects to login page if user not logged in at welcome page (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored Dec 1, 2016
1 parent 25acb78 commit 7f4f250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2598,6 +2598,8 @@ def show_traceback(self):
@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
Expand Down

0 comments on commit 7f4f250

Please sign in to comment.