From: hickert Date: Tue, 23 Mar 2010 12:25:27 +0000 (+0000) Subject: fixed addressbook acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0f25a192b193ff9536559784730f5259e20738f3;p=gosa.git fixed addressbook acls git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@17020 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc index 4954cd75b..f9f0aa5fe 100644 --- a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc +++ b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc @@ -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));