From: hickert Date: Fri, 29 Sep 2006 06:56:59 +0000 (+0000) Subject: Added printer to terminal acls. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33df5e592514cfdc1de4a258b5e49f684ded70da;p=gosa.git Added printer to terminal acls. Fixed Unittag error while creating a new printer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4831 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 4f33ca2cd..c28f712c9 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -779,16 +779,16 @@ class printgeneric extends plugin $this->attrs['gotoGroupAdminPrinter'][]=$mem['cn'][0]; } - if(($this->gosaUnitTag) && (!in_array_ics("gosaAdministrativeUnitTag",$this->attrs['objectClass']))){ - $this->attrs['objectClass'][] = "gosaAdministrativeUnitTag"; - } - if($this->orig_dn == 'new'){ foreach(array("gotoGroupPrinter","gotoUserAdminPrinter","gotoGroupAdminPrinter","gotoUserPrinter") as $checkVar){ if(count($this->attrs[$checkVar]) == 0 || empty($this->attrs[$checkVar])){ unset($this->attrs[$checkVar]); } } + }else{ + if(($this->gosaUnitTag) && (!in_array_ics("gosaAdministrativeUnitTag",$this->attrs['objectClass']))){ + $this->attrs['objectClass'][] = "gosaAdministrativeUnitTag"; + } } /* Move object in necessary*/ @@ -858,7 +858,7 @@ class printgeneric extends plugin "plPriority" => 11, "plSection" => array("administration"), "plCategory" => array("printer" => array("description" => _("Printer"), - "objectClass" => "gotoPrinter"),"workstation"), + "objectClass" => "gotoPrinter"),"workstation","terminal"), "plProvidedAcls"=> array( "cn" => _("Name"), "base" => _("Base") ,