From: hickert Date: Wed, 25 Oct 2006 04:00:30 +0000 (+0000) Subject: Fixed acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=58e25bb48f8f6405878b5a6851fb427042a2f60b;p=gosa.git Fixed acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4928 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index a27d03319..efe792ca8 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -100,7 +100,7 @@ class blocklist extends plugin /*************** - Cancel some dialogs + Create a new blocklist (dialog) ***************/ /* Create new blocklist? */ @@ -250,8 +250,13 @@ class blocklist extends plugin if($this->dn){ + $dn = $this->dn; + if($dn == "new"){ + $dn = "cn=dummy,ou=gofax,ou=systems,".$this->base; + } + $this->set_acl_category("gofax"); - $this->set_acl_base($this->dn); + $this->set_acl_base($dn); /* Base select dialog */ @@ -404,7 +409,11 @@ class blocklist extends plugin /* appen && sort */ $tmp=array(); foreach($this->blocklists as $tkey => $val ){ - $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val; + + $acl = $this->ui ->get_permissions($base,"gofax/blocklist"); + if(preg_match("/r/",$acl)){ + $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val; + } } ksort($tmp); $this->blocklists=array();