From: hickert Date: Thu, 1 Jun 2006 11:51:23 +0000 (+0000) Subject: Fixed acls for fax account / addons X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a7f8e21d60625b9b66bbd2b29e9b44f524aa78a7;p=gosa.git Fixed acls for fax account / addons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3607 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 42f729db8..2c816bd2e 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -70,9 +70,9 @@ class pluglist { foreach($this->ui->subtreeACL as $arr){ foreach($arr as $value){ if ($value == ':all' || preg_match("/[,:]$modname#/", $value)){ - if (!preg_match('/^!/', $value)){ + // if (!preg_match('/^!/', $value)){ return (TRUE); - } + // } } } } diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc index 8846a396f..f6b05cc30 100644 --- a/plugins/gofax/faxreports/class_faxreport.inc +++ b/plugins/gofax/faxreports/class_faxreport.inc @@ -211,8 +211,11 @@ class faxreport extends plugin $fax_users= array(); while ($attrs= $ldap->fetch()){ - - if (chkacl ($this->acl, "faxreport") == ""){ + $ui = get_userinfo(); + $acl= get_permissions ($ui->dn, $ui->subtreeACL); + $acl2= get_module_permission($acl, "faxreport", $attrs['dn']); + + if (chkacl ($acl2, "faxreport") == ""){ $fax_users[]= $attrs["uid"][0]; } }