Fix nil ref (#8281)

tokarchuk/v1.17
guillep2k 5 years ago committed by Lauris BH
parent b19db40eab
commit c05b89a5aa
  1. 2
      models/issue_xref.go

@ -197,7 +197,7 @@ func (issue *Issue) isValidCommentReference(e Engine, ctx *crossReferencesContex
return nil, err
}
// Check user permissions
if refIssue.Repo.ID != ctx.OrigIssue.Repo.ID {
if refIssue.RepoID != ctx.OrigIssue.RepoID {
perm, err := getUserRepoPermission(e, refIssue.Repo, ctx.Doer)
if err != nil {
return nil, err

Loading…
Cancel
Save