Merged in bugfix/PMCORE-2590 (pull request #7691)
PMCORE-2590 Users are not being imported with the specified role in the connection. Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
b691764691
@@ -341,6 +341,9 @@ switch ($function) {
|
|||||||
$aData['USR_STATUS'] = (isset($aUser['USR_STATUS'])) ? $aUser['USR_STATUS'] : 'ACTIVE';
|
$aData['USR_STATUS'] = (isset($aUser['USR_STATUS'])) ? $aUser['USR_STATUS'] : 'ACTIVE';
|
||||||
$aData['USR_UID'] = $sUserUID;
|
$aData['USR_UID'] = $sUserUID;
|
||||||
$aData['USR_ROLE'] = 'PROCESSMAKER_OPERATOR';
|
$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 = new Calendar();
|
||||||
$calendarObj->assignCalendarTo($sUserUID, '00000000000000000000000000000001', 'USER');
|
$calendarObj->assignCalendarTo($sUserUID, '00000000000000000000000000000001', 'USER');
|
||||||
|
|||||||
@@ -216,11 +216,7 @@
|
|||||||
{value: "ldap", text: "Open LDAP"},
|
{value: "ldap", text: "Open LDAP"},
|
||||||
{value: "ds", text: "389 DS"}
|
{value: "ds", text: "389 DS"}
|
||||||
],
|
],
|
||||||
roles: [
|
roles: [],
|
||||||
{value: "PROCESSMAKER_ADMIN", text: this.$root.translation("ID_SYSTEM_ADMINISTRATOR")},
|
|
||||||
{value: "PROCESSMAKER_MANAGER", text: this.$root.translation("ID_MANAGER")},
|
|
||||||
{value: "PROCESSMAKER_OPERATOR", text: this.$root.translation("ID_OPERATOR")}
|
|
||||||
],
|
|
||||||
show: true
|
show: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -434,6 +430,27 @@
|
|||||||
this.form.groupIdentifier = "uniquemember";
|
this.form.groupIdentifier = "uniquemember";
|
||||||
this.form.signInPolicyForLDAP = "0";
|
this.form.signInPolicyForLDAP = "0";
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
getRolesList() {
|
||||||
|
let formData = new FormData();
|
||||||
|
formData.append("action", "rolesList");
|
||||||
|
return axios.post(this.$root.baseUrl() + "users/usersAjax", formData)
|
||||||
|
.then(response => {
|
||||||
|
response;
|
||||||
|
let data = [];
|
||||||
|
for (let i in response.data) {
|
||||||
|
data.push({
|
||||||
|
value: response.data[i].ROL_UID,
|
||||||
|
text: response.data[i].ROL_CODE
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.roles = data;
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
error;
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -445,6 +462,11 @@
|
|||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.getRolesList();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user