@ -113,15 +113,15 @@ func notifyWatchers(e Engine, act *Action) error {
switch act . OpType {
switch act . OpType {
case ActionCommitRepo , ActionPushTag , ActionDeleteTag , ActionDeleteBranch :
case ActionCommitRepo , ActionPushTag , ActionDeleteTag , ActionDeleteBranch :
if ! act . Repo . CheckUnitUser ( act . UserID , false , UnitTypeCode ) {
if ! act . Repo . checkUnitUser ( e , act . UserID , false , UnitTypeCode ) {
continue
continue
}
}
case ActionCreateIssue , ActionCommentIssue , ActionCloseIssue , ActionReopenIssue :
case ActionCreateIssue , ActionCommentIssue , ActionCloseIssue , ActionReopenIssue :
if ! act . Repo . CheckUnitUser ( act . UserID , false , UnitTypeIssues ) {
if ! act . Repo . checkUnitUser ( e , act . UserID , false , UnitTypeIssues ) {
continue
continue
}
}
case ActionCreatePullRequest , ActionMergePullRequest , ActionClosePullRequest , ActionReopenPullRequest :
case ActionCreatePullRequest , ActionMergePullRequest , ActionClosePullRequest , ActionReopenPullRequest :
if ! act . Repo . CheckUnitUser ( act . UserID , false , UnitTypePullRequests ) {
if ! act . Repo . checkUnitUser ( e , act . UserID , false , UnitTypePullRequests ) {
continue
continue
}
}
}
}