BUG 6680 Change behavior of "On Vacation" status, so that when users return and login, status automatically changes to "active" SOLVED

- The user status never changes when a user on vacation return and login
- Now when a user on vacation return and login its status change to active
This commit is contained in:
Julio Cesar Laura
2012-09-13 14:54:38 -04:00
parent 4586d5153a
commit bc00312e8e
3 changed files with 6 additions and 5 deletions

View File

@@ -214,7 +214,7 @@ try {
case 'changeUserStatus':
$response = new stdclass();
if (isset($_REQUEST['USR_UID']) && isset($_REQUEST['NEW_USR_STATUS'])) {
$RBAC->changeUserStatus($_REQUEST['USR_UID'], $_REQUEST['NEW_USR_STATUS']);
$RBAC->changeUserStatus($_REQUEST['USR_UID'], ($_REQUEST['NEW_USR_STATUS'] == 'ACTIVE' ? 1 : 0));
require_once 'classes/model/Users.php';
$userInstance = new Users();
$userData = $userInstance->load($_REQUEST['USR_UID']);