Code

fixed printGeneric acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Sep 2006 07:57:47 +0000 (07:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Sep 2006 07:57:47 +0000 (07:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4707 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 2b9fa073e76e425780c6762db8e5f4043d9f5a83..1e107aa93a05a028649752b12e7ab86c8f38a0a9 100644 (file)
@@ -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"),