Unverified Commit 6af41385 authored by mvdbeek's avatar mvdbeek
Browse files

Skip new history creation of user is anonymous and login is required

Most straightforward fix for
https://github.com/galaxyproject/galaxy/issues/18317. I have not been
able to reproduce the issue itself though, only a single history is
being created in my testing.
parent 192fbde1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -932,6 +932,10 @@ class GalaxyWebTransaction(base.DefaultWebTransaction, context.ProvidesHistoryCo
                    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()