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/471484ff8be6/ Changeset: 471484ff8be6 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 eb89d0a2fe4426888a7589b8a4e9906269bd4fbc -r 471484ff8be60229e17f289a7b8cc3e868f95eb0 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