diff --git a/include/ajax/ajax_template_cat_card.php b/include/ajax/ajax_template_cat_card.php index a1ed35bf5..40d96f380 100644 --- a/include/ajax/ajax_template_cat_card.php +++ b/include/ajax/ajax_template_cat_card.php @@ -30,7 +30,7 @@ if (!defined('ALLOWED')) /** * ajax_template_cat_card add security , accessible only for CFGCARDCAT */ -if ( $g_user->check_module ("CFGCARDCAT")==0) +if ( $g_user->check_module ("CMCARD")==0) { return; } diff --git a/include/ajax/ajax_template_cat_category.php b/include/ajax/ajax_template_cat_category.php index 529dcbda2..692a86c95 100644 --- a/include/ajax/ajax_template_cat_category.php +++ b/include/ajax/ajax_template_cat_category.php @@ -38,7 +38,7 @@ $answer['message']=_("Commande inconnue"); */ try { - if ($g_user->check_module("CFGCARDCAT")==0) + if ($g_user->check_module("CMCARD")==0) throw new Exception(_("Accès non autorisé")); $http=new HttpInput(); $action=$http->request("action");