Skip to content

Commit

Permalink
Fix nil ref (#8281)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep2k authored and lafriks committed Sep 25, 2019
1 parent b19db40 commit c05b89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issue_xref.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c05b89a

Please sign in to comment.