PMCORE-2590 Users are not being imported with the specified role in the connection.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-12-31 12:17:33 -04:00
parent 8e080147b7
commit deb465f52a
2 changed files with 30 additions and 5 deletions

View File

@@ -341,6 +341,9 @@ switch ($function) {
$aData['USR_STATUS'] = (isset($aUser['USR_STATUS'])) ? $aUser['USR_STATUS'] : 'ACTIVE';
$aData['USR_UID'] = $sUserUID;
$aData['USR_ROLE'] = 'PROCESSMAKER_OPERATOR';
if (isset($aFields['AUTH_SOURCE_DATA']['USR_ROLE'])) {
$aData['USR_ROLE'] = $aFields['AUTH_SOURCE_DATA']['USR_ROLE'];
}
$calendarObj = new Calendar();
$calendarObj->assignCalendarTo($sUserUID, '00000000000000000000000000000001', 'USER');