Skip to content

Commit

Permalink
Merge pull request #18319 from mvdbeek/skip_history_creation_with_req…
Browse files Browse the repository at this point in the history
…uire_login_true

[23.2] Skip new history creation if user is anonymous and login is required
  • Loading branch information
mvdbeek authored Jun 6, 2024
2 parents 141ad31 + 6af4138 commit bd4a529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/webapps/base/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,10 @@ def get_or_create_default_history(self):
self.set_history(history)
return history

# Don't create new history if login required and user is anonymous
if self.app.config.require_login and not self.user:
return None

# No suitable history found, create a new one.
return self.new_history()

Expand Down

0 comments on commit bd4a529

Please sign in to comment.