Skip to content

Instantly share code, notes, and snippets.

/-

Created October 29, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8d0412367371127e90ad to your computer and use it in GitHub Desktop.
Save anonymous/8d0412367371127e90ad to your computer and use it in GitHub Desktop.
diff --git a/lib/galaxy/web/framework/webapp.py b/lib/galaxy/web/framework/webapp.py
index bd2dc9e..331538e 100644
--- a/lib/galaxy/web/framework/webapp.py
+++ b/lib/galaxy/web/framework/webapp.py
@@ -390,7 +390,7 @@ class GalaxyWebTransaction( base.DefaultWebTransaction,
# No user, associate
galaxy_session.user = self.get_or_create_remote_user( remote_user_email )
galaxy_session_requires_flush = True
- elif ((galaxy_session.user.email != remote_user_email) and
+ elif ((remote_user_email != '(null)' and galaxy_session.user.email != remote_user_email) and
((not self.app.config.allow_user_impersonation) or
(remote_user_email not in self.app.config.admin_users_list))):
# Session exists but is not associated with the correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment