Skip to content

Commit c3034c4

Browse files
committed
Fix bug when issue disabled, pull request number in the commit message cannot be redirected
1 parent 89b4be0 commit c3034c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ func registerWebRoutes(m *web.Router) {
12271227
m.Group("/{username}/{reponame}/{type:issues}", func() {
12281228
m.Get("", repo.Issues)
12291229
m.Get("/{index}", repo.ViewIssue)
1230-
}, optSignIn, context.RepoAssignment, context.RequireUnitReader(unit.TypeIssues, unit.TypeExternalTracker))
1230+
}, optSignIn, context.RepoAssignment, context.RequireUnitReader(unit.TypeIssues, unit.TypePullRequests, unit.TypeExternalTracker))
12311231
// end "/{username}/{reponame}": issue/pull list, issue/pull view, external tracker
12321232

12331233
m.Group("/{username}/{reponame}", func() { // edit issues, pulls, labels, milestones, etc

0 commit comments

Comments
 (0)