summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 903771e..32f6b22 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -114,7 +114,12 @@ class kolab_api_service_user extends kolab_api_service
}
$auth = Auth::get_instance();
- $result = $auth->user_info($getdata['user']);
+ $user = $getdata['user'];
+ $result = $auth->user_info($user);
+
+ // add user type id to the result
+ $objectclass = $result[$user]['objectclass'];
+ $result[$user]['user_type_id'] = $this->user_type_id($objectclass);
if ($result) {
return $result;