From: hickert Date: Mon, 14 Jul 2008 12:39:10 +0000 (+0000) Subject: Udpate get_printer_list in functions.inc to respect ACLs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a5a8408e5293b440eb255520f7ceb1c3fe148da7;p=gosa.git Udpate get_printer_list in functions.inc to respect ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11631 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index ada218b76..269a738bd 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1335,8 +1335,10 @@ function get_printer_list() { global $config; $res = array(); + $ui = get_userinfo(); $data = get_list('(objectClass=gotoPrinter)',"printer",$config->current['BASE'], array('cn'), GL_SUBSEARCH); foreach($data as $attrs ){ + if(!preg_match("/r/",$ui->get_permissions($data['dn'],"printer/printgeneric",""))) continue; $res[$attrs['cn'][0]] = $attrs['cn'][0]; } return $res;