diff options
Diffstat (limited to 'models/notification.go')
-rw-r--r-- | models/notification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/notification.go b/models/notification.go index 8c36c0c5c9..cda2916fae 100644 --- a/models/notification.go +++ b/models/notification.go @@ -123,10 +123,10 @@ func createOrUpdateIssueNotifications(e Engine, issue *Issue, notificationAuthor for _, watch := range watches { issue.Repo.Units = nil - if issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypePullRequests) { + if issue.IsPull && !issue.Repo.checkUnitUser(e, watch.UserID, false, UnitTypePullRequests) { continue } - if !issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypeIssues) { + if !issue.IsPull && !issue.Repo.checkUnitUser(e, watch.UserID, false, UnitTypeIssues) { continue } |