[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/04: Fix bug : the code was not updated aft
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/04: Fix bug : the code was not updated after the renaming of CFGCARDCAT in CMCARD |
Date: |
Fri, 24 Dec 2021 08:49:40 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 82808d24a5dd30abb6ddb784caac9d126d6c2862
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Dec 24 12:53:54 2021 +0100
Fix bug : the code was not updated after the renaming of CFGCARDCAT in
CMCARD
---
include/ajax/ajax_template_cat_card.php | 2 +-
include/ajax/ajax_template_cat_category.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/ajax/ajax_template_cat_card.php
b/include/ajax/ajax_template_cat_card.php
index a1ed35b..40d96f3 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 529dcbd..692a86c 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");