summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_role.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_role.php')
-rw-r--r--lib/api/kolab_api_service_role.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/api/kolab_api_service_role.php b/lib/api/kolab_api_service_role.php
index cf1e339..fc15d0b 100644
--- a/lib/api/kolab_api_service_role.php
+++ b/lib/api/kolab_api_service_role.php
@@ -39,13 +39,9 @@ class kolab_api_service_role extends kolab_api_service
{
//console("kolab_api_service_role::capabilities");
- $auth = Auth::get_instance();
-
+ $auth = Auth::get_instance();
$effective_rights = $auth->list_rights('role');
-
- //console("effective_rights", $effective_rights);
-
- $rights = array();
+ $rights = array();
if (in_array('add', $effective_rights['entryLevelRights'])) {
$rights['add'] = "w";