Fix bug : the code was not updated after the renaming of CFGCARDCAT in CMCARD

This commit is contained in:
sparkyx 2021-12-24 12:53:54 +01:00
parent ab13a65796
commit 82808d24a5
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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");