Code

Removed some debug output
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Jan 2007 04:25:55 +0000 (04:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Jan 2007 04:25:55 +0000 (04:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5544 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiDeviceManagement.inc
plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/class_termDNS.inc

index 9fe20a9f1b320a5f69f2b46b530ac6fdd2af24a9..6573cb9a690dbace39bdfa0d2635c451ecad8e99 100644 (file)
@@ -114,7 +114,7 @@ class glpiDeviceManagement extends plugin
       }elseif(isset($tmp['designation'])){
         $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['designation']));
       }else{
-        print_a(_("Can't detect object name."));
+        print_red(_("Can't detect object name."));
       }
       
       return($smarty->fetch(get_template_path('remove_glpi.tpl', TRUE)));
index b74997283622c4bd489ae6f5a2941e86236a4529..bef4941b2f083f123d1ecfdc6d6f1d186d32accc 100644 (file)
@@ -286,10 +286,17 @@ class printgeneric extends plugin
       $smarty->assign("StandAlone",false);
     }
 
-    /* Do we need to flip is_account state? */
+
     if (isset($_POST['modify_state'])){
-      $this->is_modified = true;
-      $this->is_account= !$this->is_account;
+
+      /* Only change account state if allowed */
+      if($this->is_account && $this->acl == "#all#"){
+        $this->is_account= !$this->is_account;
+        $this->is_modified = true;
+      }elseif(!$this->is_account && chkacl($this->acl,"create") == ""  && !((empty($this->cn)) && ($this->dn != "new"))){
+        $this->is_account= !$this->is_account;
+        $this->is_modified = true;
+      }
     }
 
     /* Do we represent a valid printer? */
index 4b2cd52b9b6048b2952324c9da1c8d947d960961..47287a897ed05e0f4e8e51cc009e43208c5fc367 100644 (file)
@@ -422,7 +422,6 @@ class termDNS extends plugin
 
       /* Add || Update new DNS entries 
        */
-      print_a($tmp);
       foreach($tmp['add'] as $dn => $attrs){
         $ldap->cd($dn);
         $ldap->cat($dn, array('dn'));