stany.ferer 1 年之前
父節點
當前提交
ece7eb27b2
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      core/json/events.check-control-emargement.php

+ 9 - 0
core/json/events.check-control-emargement.php

@@ -41,6 +41,15 @@ if (session::isConnect("salarie")) {
     echo json_encode($return);
     exit();
 } else {
+    if(debug::isFile() == TRUE) { 
+        historique::recRef("/events.check-control-emargement.php (control)");
+        historique::add(array(
+            "idType" => historique::getIdRef("ERROR"),
+            "idUser" => session::getId(),
+            "idPage" => historique::getIdRef("/events.check-control-emargement.php"),
+            "log" => "401 Unauthorized"
+        ));
+    }
     header('HTTP/1.0 401 Unauthorized');
     exit();
 }