Code

fixed addressbook acls probs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Mar 2010 12:28:27 +0000 (12:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Mar 2010 12:28:27 +0000 (12:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17021 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc

index 4954cd75b6b0208a164868f877e0095549024446..f9f0aa5fea8e3955f0a7f0fc15fb568fc4c7f3c9 100644 (file)
@@ -79,6 +79,8 @@ class addressbook extends plugin
     /* Include config object */
     $this->config= &$config;
 
+    $this->base = $this->config->current['BASE'];
+
     /* Check if there is a special ldap-sub-tree specified, instead of dc=addressbook, */
     $aoc = $this->config->search("addressbook", "addressbookBaseDN",array('menu'));
     if ($aoc != ""){
@@ -148,8 +150,10 @@ class addressbook extends plugin
     session::set("phonefilter", $phonefilter);
 
     /* Assign create acl */
-    $acl = $this->get_entry_acls($this->dn);
+    $acl = $this->get_entry_acls($this->base);
     $smarty->assign("internal_createable", preg_match("/c/",$acl));
+
+    $acl = $this->get_entry_acls($this->dn);
     $smarty->assign("internal_removeable", preg_match("/d/",$acl));
     $smarty->assign("internal_editable",   preg_match("/w/",$acl));