Skip to content

Commit

Permalink
For require_login=True, redirect directly to login without showing em…
Browse files Browse the repository at this point in the history
…pty (and broken) looking panels, and potentially hitting an endless reload cycle.
  • Loading branch information
dannon committed Oct 21, 2015
1 parent d53e13a commit 6f5aafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/web/framework/webapp.py
Expand Up @@ -492,7 +492,7 @@ def _ensure_logged_in_user( self, environ, session_cookie ):
except IndexError:
pass
if self.request.path not in allowed_paths:
self.response.send_redirect( url_for( controller='root', action='index' ) )
self.response.send_redirect( url_for( controller='user', action='login' ) )

def __create_new_session( self, prev_galaxy_session=None, user_for_new_session=None ):
"""
Expand Down

0 comments on commit 6f5aafe

Please sign in to comment.