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.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index b8d46a2..e6c4049 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -21,14 +21,7 @@ class kolab_api_service_user extends kolab_api_service
public function user_add($getdata, $postdata)
{
- if (!isset($postdata['user_type_id'])) {
- throw new Exception($this->controller->translate('user.notypeid'), 346781);
- }
-
- $sql_result = $this->db->query("SELECT attributes FROM user_types WHERE id = ?", $postdata['user_type_id']);
- $user_type = $this->db->fetch_assoc($sql_result);
-
- $uta = json_decode(unserialize($user_type['attributes']), true);
+ $uta = $this->user_type_attributes($postdata['user_type_id']);
$user_attributes = array();