[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 16/29: Security Can_Request log the security
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 16/29: Security Can_Request log the security for Ajax |
Date: |
Wed, 4 Nov 2020 11:08:42 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit df9d424becfcc8063774115299d9504c9bf73fb3
Author: Dany wm De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Nov 1 13:04:51 2020 +0100
Security Can_Request log the security for Ajax
---
include/class/user.class.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/class/user.class.php b/include/class/user.class.php
index 23051d0..6d43289 100644
--- a/include/class/user.class.php
+++ b/include/class/user.class.php
@@ -745,7 +745,7 @@ class User
/**\brief Check if the user can access
* otherwise warn and exit
* \param $p_action requested action
- * \param $p_js = 1 javascript, or 0 just a text
+ * \param $p_js = 1 javascript, or 0 just a text or 2 to log it silently
* \return nothing the program exits automatically
*/
@@ -760,6 +760,9 @@ class User
echo "alert ('Cette action ne vous est pas
autorisée. Contactez votre responsable');";
echo "</script>";
}
+ elseif ($p_js == 2) {
+ record_log(_("Access invalid").$p_action);
+ }
else
{
echo '<div class="redcontent">';
- [Noalyss-commit] [noalyss] branch master updated (bc168d2 -> fdf9df4), Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 01/29: Nouvelle balises, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 03/29: FollowUp : nouvelle balises HOUR , GROUPMGMT , PRIORITY, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 13/29: Balise Document_Type, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 06/29: Compta analytique : ajout du tiers dans Grand'Livre, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 10/29: Correct SQL script, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 16/29: Security Can_Request log the security for Ajax,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/29: Balise : nouveau STATUS , etat du document, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 11/29: Style : improve h2, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 22/29: Cosmetic, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 25/29: cosmetic : waiting box, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 19/29: Predefined Operation filter by ledger, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 21/29: cosmetic , remove myfiedset class, unclosed tag , the title comment is not show if there is no comment, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 20/29: Cosmetic Admin List Folders : add close button, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 02/29: Sort by earliest one, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 07/29: 0001827: Delta des opérations liées basé sur le montant d'une seule opération, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 09/29: Adapt for Textarea, Dany De Bontridder, 2020/11/04