summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_type.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_type.php')
-rw-r--r--lib/api/kolab_api_service_type.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/api/kolab_api_service_type.php b/lib/api/kolab_api_service_type.php
index 0089589..65b60be 100644
--- a/lib/api/kolab_api_service_type.php
+++ b/lib/api/kolab_api_service_type.php
@@ -40,19 +40,19 @@ class kolab_api_service_type extends kolab_api_service
$effective_rights = $this->type_effective_rights();
$rights = array();
- if (in_array('add', (array)$effective_rights['entryLevelRights'])) {
+ if (in_array('add', (array)$effective_rights['entrylevelrights'])) {
$rights['add'] = "w";
}
- if (in_array('delete', (array)$effective_rights['entryLevelRights'])) {
+ if (in_array('delete', (array)$effective_rights['entrylevelrights'])) {
$rights['delete'] = "w";
}
- if (in_array('modrdn', (array)$effective_rights['entryLevelRights'])) {
+ if (in_array('modrdn', (array)$effective_rights['entrylevelrights'])) {
$rights['edit'] = "w";
}
- if (in_array('read', (array)$effective_rights['entryLevelRights'])) {
+ if (in_array('read', (array)$effective_rights['entrylevelrights'])) {
$rights['info'] = "r";
}
@@ -84,7 +84,7 @@ class kolab_api_service_type extends kolab_api_service
}
$effective_rights = $this->type_effective_rights();
- if (!in_array('add', (array)$effective_rights['entryLevelRights'])) {
+ if (!in_array('add', (array)$effective_rights['entrylevelrights'])) {
return false;
}
@@ -146,7 +146,7 @@ class kolab_api_service_type extends kolab_api_service
$object_id = $postdata['id'];
$effective_rights = $this->type_effective_rights();
- if (!in_array('delete', (array)$effective_rights['entryLevelRights'])) {
+ if (!in_array('delete', (array)$effective_rights['entrylevelrights'])) {
return false;
}
@@ -178,7 +178,7 @@ class kolab_api_service_type extends kolab_api_service
}
$effective_rights = $this->type_effective_rights();
- if (!in_array('modrdn', (array)$effective_rights['entryLevelRights'])) {
+ if (!in_array('modrdn', (array)$effective_rights['entrylevelrights'])) {
return false;
}
@@ -224,10 +224,10 @@ class kolab_api_service_type extends kolab_api_service
if (strtolower($_SESSION['user']->get_userid()) == 'cn=directory manager') {
$attr_acl = array('read', 'write', 'delete');
$effective_rights = array(
- 'entryLevelRights' => array(
+ 'entrylevelrights' => array(
'read', 'add', 'delete', 'modrdn',
),
- 'attributeLevelRights' => array(
+ 'attributelevelrights' => array(
'key' => $attr_acl,
'name' => $attr_acl,
'description' => $attr_acl,