From e795fe3daff2dc806988a2088511d840cd20e1ab Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 12 Jan 2022 11:31:36 +0300 Subject: [PATCH] fix method --- inc/lib/CAPI.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/lib/CAPI.class.php b/inc/lib/CAPI.class.php index 3eb7e2c..071d451 100644 --- a/inc/lib/CAPI.class.php +++ b/inc/lib/CAPI.class.php @@ -11,6 +11,8 @@ class CAPI { public static function getUserInfo() { global $USER; unset($USER['password']); - return $USER; + $result = $USER; + $result['devices'] = getUserDevices($USER['id']); + return $result; } } \ No newline at end of file