load repo before actually using it
This commit is contained in:
parent
7b990f788b
commit
4ea560ccad
|
|
@ -120,6 +120,7 @@ func createOrUpdateIssueNotifications(e Engine, issue *Issue, notificationAuthor
|
|||
}
|
||||
|
||||
for _, watch := range watches {
|
||||
issue.loadRepo(e)
|
||||
issue.Repo.Units = nil
|
||||
if issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypePullRequests) {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user