noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 15/24: Additional Tax : security


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 15/24: Additional Tax : security
Date: Tue, 12 Jul 2022 07:05:33 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 88e513f74fa96e1aa428f2453a58c79aaa9a5d9d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue May 31 12:55:27 2022 +0200

    Additional Tax : security
---
 include/acc_other_tax.inc.php   | 1 +
 include/ajax/ajax_other_tax.php | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/acc_other_tax.inc.php b/include/acc_other_tax.inc.php
index 3e3a74e66..83adf9be2 100644
--- a/include/acc_other_tax.inc.php
+++ b/include/acc_other_tax.inc.php
@@ -20,6 +20,7 @@
  * @file
  * @brief manage the public.acc_other_tax
  */
+if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
 ?>
 <div class="content">
 <?php
diff --git a/include/ajax/ajax_other_tax.php b/include/ajax/ajax_other_tax.php
index 145f28829..141644f0e 100644
--- a/include/ajax/ajax_other_tax.php
+++ b/include/ajax/ajax_other_tax.php
@@ -18,7 +18,10 @@
  *  Copyright (2002-2022) Author Dany De Bontridder <danydb@noalyss.eu>
  */
 global $g_user;
-if  ( $g_user->check_module("OTAX") == 0) die();
+if (!defined('ALLOWED'))
+    die('Appel direct ne sont pas permis');
+
+if  ( $g_user->check_module("OTAX") == 0) die("");
 
 try {
     $table=$http->request('table');



reply via email to

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