summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-08 12:36:52 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-08 12:36:52 +0200
commitcfefc95f15e052edc8a23fb686bea2425fe6c9a6 (patch)
treeae07aa8b7b5d018d87fc563a98cc8070d72c3987
parent45198c2af02fa8fe6df66c214d8acc316a25f7c0 (diff)
downloadwebadmin-cfefc95f15e052edc8a23fb686bea2425fe6c9a6.tar.gz
Add service method group_effective_rights()
-rw-r--r--lib/api/kolab_api_service_group.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/api/kolab_api_service_group.php b/lib/api/kolab_api_service_group.php
index f5e87ed..6e53340 100644
--- a/lib/api/kolab_api_service_group.php
+++ b/lib/api/kolab_api_service_group.php
@@ -132,6 +132,13 @@ class kolab_api_service_group extends kolab_api_service
return false;
}
+ public function group_effective_rights($getdata, $postdata)
+ {
+ $auth = Auth::get_instance();
+ $effective_rights = $auth->list_rights($getdata['group']);
+ return $effective_rights;
+ }
+
/**
* Group information.
*
@@ -152,8 +159,6 @@ class kolab_api_service_group extends kolab_api_service
// normalize result
$result = $this->parse_result_attributes('group', $result);
- //console("group_info() \$result", $result);
-
if ($result) {
return $result;
}
@@ -174,9 +179,10 @@ class kolab_api_service_group extends kolab_api_service
$auth = Auth::get_instance();
if (empty($getdata['group'])) {
- //error_log("Empty \$getdata['group']");
+ error_log("Empty \$getdata['group']");
return FALSE;
}
+
$result = $auth->group_members_list($getdata['group'], false);
return array(