27if ( ! defined (
'ALLOWED') ) die(_(
'Non autorisé'));
31if (
$g_user->check_module(
'CFGPRO')==0)
36 $p_profile_menu_id=
$http->get(
'p_profile_menu_id',
"number");
40 error_log($exc->getTraceAsString());
45$cn->exec_sql(
'delete from profile_menu where pm_id = $1 or pm_id_dep=$1',array($p_profile_menu_id));
48$cn->exec_sql(
"delete from profile_menu "
49 .
" where pm_id_dep is not null "
50 .
" and pm_id_dep not in (select pm_id from profile_menu)");
global $g_user
if no group available , then stop