From 6cf647f28d14b20868eb574cdb93459b406cb3cf Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Mar 2010 12:28:27 +0000 Subject: [PATCH] fixed addressbook acls probs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17021 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addressbook/addons/addressbook/class_addressbook.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- 2.30.2