Update user.php

This commit is contained in:
Laurent Destailleur 2024-01-15 21:58:03 +01:00 committed by GitHub
parent b4cfab5af3
commit 58036f1b39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,25 +116,6 @@ if ($action == 'set_default') {
} else {
dol_print_error($db);
}
} elseif ($action == 'sethideexternaluser') {
//Set hide external user into combox or select
$status = GETPOST('status', 'alpha');
if (dolibarr_set_const($db, "USER_HIDE_EXTERNAL_IN_COMBOBOX", $status, 'chaine', 0, '', $conf->entity) > 0) {
header("Location: " . $_SERVER["PHP_SELF"]);
exit;
} else {
dol_print_error($db);
}
} elseif ($action == 'sethidenonemployeeuser') {
//Set hide non employee user into combox or select
$status = GETPOST('status', 'alpha');
if (dolibarr_set_const($db, "USER_HIDE_NONEMPLOYEE_IN_COMBOBOX", $status, 'chaine', 0, '', $conf->entity) > 0) {
header("Location: ".$_SERVER["PHP_SELF"]);
exit;
} else {
dol_print_error($db);
}
}