Fix user account status for manually blocked users
User account status in web interface is displayed incorrectly
if account is disabled (or enabled) via ssh.
Test manually:
1. Create new user using web interface
2. Change user account expiration date via ssh
chage -E 1970-01-01 <new user>
User account is blocked
3. Check user status in web interface.
Blocked user account status should be displayed as "Disabled".
Change-Id: I15e93a87653289b5ba76313895da0cf7e5dd2c7c
Signed-off-by: Denis Zlobin <zlobin.d.al@gmail.com>
diff --git a/users.cpp b/users.cpp
index 8d6df6a..3440b94 100644
--- a/users.cpp
+++ b/users.cpp
@@ -140,7 +140,7 @@
*/
bool Users::userEnabled(void) const
{
- return UsersIface::userEnabled();
+ return manager.isUserEnabled(userName);
}
void Users::setUserEnabled(bool value)