noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fi


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum
Date: Wed, 14 Mar 2018 17:38:14 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2697943da5964022952a113370430af766977d17
Author: Dany De Bontridder <address@hidden>
Date:   Tue Jan 9 17:59:19 2018 +0100

    Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum
---
 include/ajax/ajax_template_cat_card.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/ajax/ajax_template_cat_card.php 
b/include/ajax/ajax_template_cat_card.php
index d5625c5..05ad1c1 100644
--- a/include/ajax/ajax_template_cat_card.php
+++ b/include/ajax/ajax_template_cat_card.php
@@ -29,8 +29,12 @@ if (!defined('ALLOWED'))
 
 require_once NOALYSS_INCLUDE."/class/template_card_category.class.php";
 /**
- * @todo ajax_template_cat_card add security
+ * ajax_template_cat_card add security , accessible only for CFGCARDCAT
  */
+if ( $g_user->check_module ("CFGCARDCAT")==0)
+{
+    return;
+}
 
 $http=new HttpInput();
 $action=$http->request("action");
@@ -55,6 +59,8 @@ switch ($action)
     case "save":
         header('Content-type: text/xml; charset=UTF-8');
         echo $cat->ajax_save()->saveXML();
+        if ( $p_id == -1 )
+            $cat->add_mandatory_attr();
         return;
         break;
     case "delete":



reply via email to

[Prev in Thread] Current Thread [Next in Thread]