From 6d3b8141df36299836b684dfd90256e4267fd455 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 12 Aug 2020 16:36:22 -0400 Subject: [PATCH] Fix ignored login on compare (#12476) (#12478) Co-authored-by: Lunny Xiao --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index d739f0b6c..34157ea5b 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -713,7 +713,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/:id", repo.MilestoneIssuesAndPulls) }, reqRepoIssuesOrPullsReader, context.RepoRef()) m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists). - Get(repo.SetDiffViewStyle, repo.CompareDiff). + Get(ignSignIn, repo.SetDiffViewStyle, repo.CompareDiff). Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) }, context.RepoAssignment(), context.UnitTypes())