Edit user fix

This commit is contained in:
Jose Gonzalez 2023-02-16 07:44:41 +01:00
parent e42c4575d5
commit 21a4a4ced8
2 changed files with 4 additions and 5 deletions

View File

@ -29,7 +29,7 @@
// Load global vars.
global $config;
hd($_REQUEST, true);
check_login();
require_once $config['homedir'].'/vendor/autoload.php';
@ -1836,7 +1836,6 @@ if (is_metaconsole() === true) {
include_once 'user_management.php';
}
echo '</div>';
if ((bool) $config['admin_can_add_user'] === true) {
html_print_csrf_hidden();
@ -1848,6 +1847,8 @@ if ($new_user === true) {
html_print_input_hidden('json_profile', $json_profile);
}
echo '</div>';
echo '</form>';
echo '</div>';

View File

@ -117,9 +117,7 @@ function profile_create_user_profile(
'assigned_by' => $assign,
'no_hierarchy' => $no_hierarchy ? 1 : 0,
];
hd('inicio insert', true);
hd($insert, true);
hd('final insert', true);
return db_process_sql_insert('tusuario_perfil', $insert);
}