mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fix nil ref (#8281)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user