We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291adce commit e1d9bcbCopy full SHA for e1d9bcb
routers/web/repo/issue.go
@@ -1784,6 +1784,10 @@ func getActionIssues(ctx *context.Context) []*issues_model.Issue {
1784
issueUnitEnabled := ctx.Repo.CanRead(unit.TypeIssues)
1785
prUnitEnabled := ctx.Repo.CanRead(unit.TypePullRequests)
1786
for _, issue := range issues {
1787
+ if issue.RepoID != ctx.Repo.Repository.ID {
1788
+ ctx.NotFound("some issue's RepoID is incorrect", errors.New("some issue's RepoID is incorrect"))
1789
+ return nil
1790
+ }
1791
if issue.IsPull && !prUnitEnabled || !issue.IsPull && !issueUnitEnabled {
1792
ctx.NotFound("IssueOrPullRequestUnitNotAllowed", nil)
1793
return nil
0 commit comments