From: cajus Date: Thu, 25 Oct 2007 12:21:20 +0000 (+0000) Subject: * Code cleanup for non pre-defined ttag variable X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6636c62c72c8d0560e58dfa06a5cfee8823ab33a;p=gosa.git * Code cleanup for non pre-defined ttag variable * Fixed base check of printer saving git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7657 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 39fc85b66..baf7f9468 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -759,6 +759,7 @@ function get_module_permission($acl_array, $module, $dn, $checkTag= TRUE){ global $ui, $config; /* Check for strict tagging */ + $ttag= ""; if ($checkTag && isset($config->current['STRICT_UNITS']) && preg_match('/^(yes|true)$/i', $config->current['STRICT_UNITS']) && $ui->gosaUnitTag != ""){ diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index f85cc5689..9d3c2cfe2 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -646,7 +646,7 @@ class printgeneric extends plugin if($this->BelongsTo == "Printer"){ $ui= get_userinfo(); $acl= get_permissions ($dn, $ui->subtreeACL); - $acl= get_module_permission($acl, "printgeneric", $this->dn); + $acl= get_module_permission($acl, "printgeneric", $dn); if (chkacl($acl, "create") != ""){ $message[]= _("You have no permissions to create a printer on this 'Base'."); }