Skip to content

Commit

Permalink
Merge pull request #14158 from mvdbeek/fix_set_user
Browse files Browse the repository at this point in the history
[22.01] Fix set_user function
  • Loading branch information
mvdbeek authored Jun 23, 2022
2 parents 6c872e7 + bd73e06 commit a6ea0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/base/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def get_user(self):
def set_user(self, user):
"""Set the current user."""
if self.galaxy_session:
if user.bootstrap_admin_user:
if user and not user.bootstrap_admin_user:
self.galaxy_session.user = user
self.sa_session.add(self.galaxy_session)
self.sa_session.flush()
Expand Down

0 comments on commit a6ea0a6

Please sign in to comment.