PM-1626 0016797: REST endpoint /api/1.0/{workspace}/users should return the calendar and photo of the user.
Causa : Definida asi el endpoint USERS. SolucióAgregar la informacióue se pide (calendar_uid, calendar_name y el path de la fotografia).
This commit is contained in:
@@ -335,7 +335,7 @@ class User
|
|||||||
try {
|
try {
|
||||||
//Get Calendar
|
//Get Calendar
|
||||||
$calendar = new \Calendar();
|
$calendar = new \Calendar();
|
||||||
$calendarInfo = $calendar->getCalendarFor( $record["USR_UID"], $record["USR_UID"], $record["USR_UID"] );
|
$calendarInfo = $calendar->getCalendarFor( $record["USR_UID"], "", "" );
|
||||||
$aFields["USR_CALENDAR_UID"] = ($calendarInfo["CALENDAR_APPLIED"] != "DEFAULT") ? $calendarInfo["CALENDAR_UID"] : "";
|
$aFields["USR_CALENDAR_UID"] = ($calendarInfo["CALENDAR_APPLIED"] != "DEFAULT") ? $calendarInfo["CALENDAR_UID"] : "";
|
||||||
$aFields["USR_CALENDAR"] = ($aFields["USR_CALENDAR_UID"] != "") ? $calendar->calendarName( $aFields["USR_CALENDAR_UID"] ) : $aFields["USR_CALENDAR_UID"];
|
$aFields["USR_CALENDAR"] = ($aFields["USR_CALENDAR_UID"] != "") ? $calendar->calendarName( $aFields["USR_CALENDAR_UID"] ) : $aFields["USR_CALENDAR_UID"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user