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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user