From: hickert Date: Mon, 18 Sep 2006 07:57:47 +0000 (+0000) Subject: fixed printGeneric acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f9b5f012f44d163020e505a9014d8e7a04990f11;p=gosa.git fixed printGeneric acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4707 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 2b9fa073e..1e107aa93 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -588,7 +588,7 @@ class printgeneric extends plugin $this->netConfigDNS->save_object(); /* Save base, since this is no LDAP attribute */ - if(isset($_POST['base'])){ + if((isset($_POST['base'])) && ($this->acl_is_moveable()) ) { $this->set_acl_base('dummy,'.$_POST['base']); if($this->acl_is_moveable()){ @@ -723,7 +723,7 @@ class printgeneric extends plugin } /* If no ppd is selected, remove this attribute */ - if(count($this->gotoPrinterPPD)) { + if(!empty($this->gotoPrinterPPD)) { $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); }else{ $this->attrs['gotoPrinterPPD'] = array(); @@ -838,7 +838,7 @@ class printgeneric extends plugin "objectClass" => "gotoPrinter")), "plProvidedAcls"=> array( "cn" => _("Name"), - + "base" => _("Base") , "description" => _("Description"), "l" => _("Location"), "labeledURI" => _("LabeledURL"),