if (!$ic->getFromDBforDevice($_POST['itemtype'], $key)) {
                 $ic->add($input);
             }
         }
     }
     break;
 case "change_authtype":
     foreach ($_POST["item"] as $key => $val) {
         if ($val == 1) {
             $ids[] = $key;
         }
     }
     User::changeAuthMethod($ids, $_POST["authtype"], $_POST["auths_id"]);
     break;
 case "unlock_ocsng_field":
     $fields = OcsServer::getLockableFields();
     if ($_POST['field'] == 'all' || isset($fields[$_POST['field']])) {
         foreach ($_POST["item"] as $key => $val) {
             if ($val == 1) {
                 if ($_POST['field'] == 'all') {
                     OcsServer::replaceOcsArray($key, array(), "computer_update");
                 } else {
                     OcsServer::deleteInOcsArray($key, $_POST['field'], "computer_update", true);
                 }
             }
         }
     }
     break;
 case "unlock_ocsng_monitor":
 case "unlock_ocsng_printer":
 case "unlock_ocsng_peripheral":