[completed: 592] Inactive users no longer receive email notifications for page/message updates.
This commit is contained in:
parent
4249a761d7
commit
3c81c74f49
3 changed files with 5 additions and 5 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
|||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("3.0.4.561")]
|
||||
[assembly: AssemblyFileVersion("3.0.4.561")]
|
||||
[assembly: AssemblyVersion("3.0.4.562")]
|
||||
[assembly: AssemblyFileVersion("3.0.4.562")]
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -908,7 +908,7 @@ namespace ScrewTurn.Wiki {
|
|||
|
||||
// Verify read permissions
|
||||
foreach(UserInfo user in temp) {
|
||||
if(AuthChecker.CheckActionForPage(page, Actions.ForPages.ReadPage, user.Username, user.Groups)) {
|
||||
if(user.Active && AuthChecker.CheckActionForPage(page, Actions.ForPages.ReadPage, user.Username, user.Groups)) {
|
||||
result.Add(user);
|
||||
}
|
||||
}
|
||||
|
@ -933,7 +933,7 @@ namespace ScrewTurn.Wiki {
|
|||
|
||||
// Verify read permissions
|
||||
foreach(UserInfo user in temp) {
|
||||
if(AuthChecker.CheckActionForPage(page, Actions.ForPages.ReadDiscussion, user.Username, user.Groups)) {
|
||||
if(user.Active && AuthChecker.CheckActionForPage(page, Actions.ForPages.ReadDiscussion, user.Username, user.Groups)) {
|
||||
result.Add(user);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue