U4-10279 User states filter in user overview is broken

This commit is contained in:
Shannon
2017-08-18 14:17:31 +10:00
parent 1fc49ccf59
commit 4cebec0d39

View File

@@ -663,16 +663,19 @@ ORDER BY colName";
{
if (appended) sb.Append(" OR ");
sb.Append("(userDisabled = 1)");
appended = true;
}
if (userState.Contains(UserState.LockedOut))
{
if (appended) sb.Append(" OR ");
sb.Append("(userNoConsole = 1)");
appended = true;
}
if (userState.Contains(UserState.Invited))
{
if (appended) sb.Append(" OR ");
sb.Append("(lastLoginDate IS NULL AND userDisabled = 1 AND invitedDate IS NOT NULL)");
appended = true;
}
sb.Append(")");