summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-03 07:06:04 -0500
committerAleksander Machniak <machniak@kolabsys.com>2014-11-03 07:06:04 -0500
commit3e93d76e5163daf454c06d335960b7350b035aba (patch)
tree6eab40165562454d3b36366c9a1490130db84fd4 /lib/api/kolab_api_service_user.php
parent7bc79c68dd1635821fb4d379c15590b521d98979 (diff)
downloadwebadmin-3e93d76e5163daf454c06d335960b7350b035aba.tar.gz
Skip redundant ldap read for additional attributes (#3859)
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 33e055a..436f96b 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -168,9 +168,8 @@ class kolab_api_service_user extends kolab_api_service
}
$auth = Auth::get_instance();
- $result = $auth->user_info($getdata['id']);
-
- Log::trace("user.info on " . $getdata['id'] . " result: " . var_export($result, TRUE));
+ $attrs = $this->object_attributes('user');
+ $result = $auth->user_info($getdata['id'], $attrs);
// normalize result
$result = $this->parse_result_attributes('user', $result);
@@ -213,7 +212,8 @@ class kolab_api_service_user extends kolab_api_service
}
// get user data
- $result = $auth->user_info(key($users['list']));
+ $attrs = $this->object_attributes('user');
+ $result = $auth->user_info(key($users['list']), $attrs);
// normalize result
$result = $this->parse_result_attributes('user', $result);