[completed: 592] Inactive users no longer receive email notifications for page/message updates.

This commit is contained in:
Dario Solera 2011-04-06 18:43:38 +02:00
parent 4249a761d7
commit 3c81c74f49
3 changed files with 5 additions and 5 deletions

View file

@ -887,7 +887,7 @@ namespace ScrewTurn.Wiki {
// TODO: make this work when Users.GetUsers does not return all existing users but only a sub-set
List<UserInfo> usersToNotify = new List<UserInfo>(10);
foreach(UserInfo user in Users.GetUsers()) {
if(CanApproveDraft(currentPage, user.Username, user.Groups)) {
if(user.Active && CanApproveDraft(currentPage, user.Username, user.Groups)) {
usersToNotify.Add(user);
}
}