summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6b2f31)
raw | patch | inline | side by side (parent: e6b2f31)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 12:21:20 +0000 (12:21 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Oct 2007 12:21:20 +0000 (12:21 +0000) |
* Fixed base check of printer saving
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7657 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7657 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history | |
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 39fc85b6697e6c37b6bb4e8b7b0bb5f1a3719d39..baf7f94683a34a30dacc5786328216c1e7d38996 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
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 f85cc568932e1b202429ae16b05ccd93d2aded57..9d3c2cfe25ef6e524d4ccaacec09d0d064271f5e 100644 (file)
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'.");
}