summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_type.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-12 10:26:48 +0200
committerAleksander Machniak <alec@alec.pl>2013-04-12 10:26:48 +0200
commitd1b909c124910576a6b22cca11ebd08344e10e3c (patch)
tree50ca000a9bd89028595f0f1f0d9b6c52116a1a68 /lib/api/kolab_api_service_type.php
parentacddf93a9ff407eae3c5216d134e5f0a42ff05f9 (diff)
downloadwebadmin-d1b909c124910576a6b22cca11ebd08344e10e3c.tar.gz
Remove not implemented find* capabilities, some code cleanup
Diffstat (limited to 'lib/api/kolab_api_service_type.php')
-rw-r--r--lib/api/kolab_api_service_type.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_type.php b/lib/api/kolab_api_service_type.php
index 0c47c89..9faeff1 100644
--- a/lib/api/kolab_api_service_type.php
+++ b/lib/api/kolab_api_service_type.php
@@ -43,14 +43,19 @@ class kolab_api_service_type extends kolab_api_service
if (in_array('add', (array)$effective_rights['entryLevelRights'])) {
$rights['add'] = "w";
}
+
if (in_array('delete', (array)$effective_rights['entryLevelRights'])) {
$rights['delete'] = "w";
}
+
if (in_array('modrdn', (array)$effective_rights['entryLevelRights'])) {
$rights['edit'] = "w";
}
- $rights['info'] = "r";
+ if (in_array('read', (array)$effective_rights['entryLevelRights'])) {
+ $rights['info'] = "r";
+ }
+
$rights['effective_rights'] = "r";
return $rights;