commit/galaxy-central: dannon: For user impersonation, fully log the admin out prior to assuming user persona to avoid any history/session corruption.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9d42f1e32efb/ Changeset: 9d42f1e32efb Branch: stable User: dannon Date: 2013-06-12 16:39:09 Summary: For user impersonation, fully log the admin out prior to assuming user persona to avoid any history/session corruption. Affected #: 1 file diff -r e79a60e7c67a68279c2c976ada9ddaa1095fadb4 -r 9d42f1e32efb654fda1e011dc66a4aa5888717f1 lib/galaxy/webapps/galaxy/controllers/admin.py --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -682,7 +682,8 @@ if email is not None: user = trans.sa_session.query( trans.app.model.User ).filter_by( email=email ).first() if user: - trans.set_user( user ) + trans.handle_user_logout() + trans.handle_user_login(user) message = 'You are now logged in as %s, <a target="_top" href="%s">return to the home page</a>' % ( email, url_for( controller='root' ) ) emails = [] else: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org