summaryrefslogtreecommitdiff
path: root/lib/api/kolab_api_service_resource.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_resource.php')
-rw-r--r--lib/api/kolab_api_service_resource.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/api/kolab_api_service_resource.php b/lib/api/kolab_api_service_resource.php
index 8c65e20..55c93de 100644
--- a/lib/api/kolab_api_service_resource.php
+++ b/lib/api/kolab_api_service_resource.php
@@ -124,10 +124,8 @@ class kolab_api_service_resource extends kolab_api_service
//console("\$resource_attributes as result from parse_input_attributes", $resource_attributes);
- $resource = $postdata['id'];
-
$auth = Auth::get_instance();
- $result = $auth->resource_edit($resource, $resource_attributes, $postdata['type_id']);
+ $result = $auth->resource_edit($postdata['id'], $resource_attributes, $postdata['type_id']);
// Return the $mod_array
if ($result) {
@@ -175,14 +173,6 @@ class kolab_api_service_resource extends kolab_api_service
// normalize result
$result = $this->parse_result_attributes('resource', $result);
- if (empty($result['ou'])) {
- $dn = ldap_explode_dn($result['entrydn'], 0);
- // pop the count and rdn
- unset($dn['count']);
- unset($dn[0]);
- $result['ou'] = implode(',', $dn);
- }
-
if ($result) {
return $result;
}
@@ -210,14 +200,6 @@ class kolab_api_service_resource extends kolab_api_service
// normalize result
$result = $this->parse_result_attributes('resource', $result);
- if (empty($result['ou'])) {
- $dn = ldap_explode_dn($result['entrydn'], 0);
- // pop the count and rdn
- unset($dn['count']);
- unset($dn[0]);
- $result['ou'] = implode(',', $dn);
- }
-
if ($result) {
return $result;
}