PMCORE-2150 PMFUpdateUser() function doesn't update due date to all users in RBAC_USERS

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-09-15 14:53:17 -04:00
parent ea071649d8
commit edeae3ff3b
2 changed files with 25 additions and 1 deletions

View File

@@ -1165,12 +1165,14 @@ class RBAC
$dataCase['USR_STATUS'] = 1;
}
}
$currentUser = $this->userObj;
$this->userObj = new RbacUsers();
$this->userObj->update($dataCase);
if ($rolCode != '') {
$this->removeRolesFromUser($dataCase['USR_UID']);
$this->assignRoleToUser($dataCase['USR_UID'], $rolCode);
}
$this->userObj = $currentUser;
}
/**