1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

permission

This commit is contained in:
Lunny Xiao
2022-11-23 16:05:36 +08:00
committed by Jason Song
parent d17a0b13f1
commit 3e8de17db3
2 changed files with 15 additions and 0 deletions

View File

@@ -143,6 +143,9 @@ func NotifyNewPullRequest(ctx context.Context, pr *issues_model.PullRequest, men
log.Error("%v", err)
return
}
if err := pr.Issue.LoadPoster(ctx); err != nil {
return
}
if pr.Issue.Poster.IsBots() {
return
}