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:
dheeyi
2015-05-27 17:14:44 -04:00
parent a54d3c5313
commit 81f8ffd2f7

View File

@@ -335,7 +335,7 @@ class User
try {
//Get 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"] = ($aFields["USR_CALENDAR_UID"] != "") ? $calendar->calendarName( $aFields["USR_CALENDAR_UID"] ) : $aFields["USR_CALENDAR_UID"];