(refs #10) Except group account in notification.

This commit is contained in:
shimamoto
2013-09-04 18:45:37 +09:00
parent 3c0681d55d
commit 420ca85393

View File

@@ -26,7 +26,7 @@ trait Notifier extends RepositoryService with AccountService with IssuesService
)
.distinct
.withFilter ( _ != context.loginAccount.get.userName ) // the operation in person is excluded
.foreach ( getAccountByUserName(_) foreach (x => notify(x.mailAddress)) )
.foreach ( getAccountByUserName(_) filterNot (_.isGroupAccount) foreach (x => notify(x.mailAddress)) )
}