summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f41fd7)
raw | patch | inline | side by side (parent: 8f41fd7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Sep 2006 10:52:49 +0000 (10:52 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Sep 2006 10:52:49 +0000 (10:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4658 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history | |
plugins/personal/environment/class_kioskManagementDialog.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 4373a7b08bb1ce689348aa8f8a84af304e31b20f..9fb8b59e2be85309c5d6ac3d8d77030d28fcf9aa 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Merge in printers from LDAP */
$ldap= $config->get_ldap_link();
$ldap->cd ($config->current['BASE']);
- $ldap->search('(objectClass=gotoPrinter)', array('cn'));
- while ($attrs= $ldap->fetch()){
- $res[$attrs["cn"][0]]= $attrs["cn"][0];
+ $ui= get_userinfo();
+ if (preg_match('/TRUE/i', $config->current['STRICT_UNITS']) && $ui->gosaUnitTag != ""){
+ $ldap->search('((objectClass=gotoPrinter)(gosaUnitTag='.$ui->gosaUnitTag.'))', array('cn'));
+ } else {
+ $ldap->search('(objectClass=gotoPrinter)', array('cn'));
}
return $res;
diff --git a/plugins/personal/environment/class_kioskManagementDialog.inc b/plugins/personal/environment/class_kioskManagementDialog.inc
index 217c7120c06661184df53e1548a992cd0d211037..dff2bc97bc08bd7f9272587e72392c21868da992 100644 (file)
function kioskManagementDialog ($config, $dn= NULL,$attach=false )
{
- plugin::plugin ($config, $dn);
+ $this->config= $config;
+ $this->dn= $dn;
+
if($attach){
$this->filesToAttach = $attach;
}