mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 07:03:55 +03:00
Fix nil ref (#8281)
This commit is contained in:
parent
b19db40eab
commit
c05b89a5aa
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ func (issue *Issue) isValidCommentReference(e Engine, ctx *crossReferencesContex
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// Check user permissions
|
// 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)
|
perm, err := getUserRepoPermission(e, refIssue.Repo, ctx.Doer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue