Skip to content

Commit c05b89a

Browse files
guillep2klafriks
authored andcommitted
Fix nil ref (#8281)
1 parent b19db40 commit c05b89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issue_xref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (issue *Issue) isValidCommentReference(e Engine, ctx *crossReferencesContex
197197
return nil, err
198198
}
199199
// Check user permissions
200-
if refIssue.Repo.ID != ctx.OrigIssue.Repo.ID {
200+
if refIssue.RepoID != ctx.OrigIssue.RepoID {
201201
perm, err := getUserRepoPermission(e, refIssue.Repo, ctx.Doer)
202202
if err != nil {
203203
return nil, err

0 commit comments

Comments
 (0)