From b726171bc3ed5b357a2b4b5d411ba2c1a5d35c94 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 14 Mar 2024 23:14:54 +0000 Subject: [PATCH] Update file index.php --- html/admin/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/admin/index.php b/html/admin/index.php index 345a7f21..53c101ad 100644 --- a/html/admin/index.php +++ b/html/admin/index.php @@ -4,6 +4,7 @@ require("../../include/functions.php"); if (!isset($_SESSION['userLevel']) || $_SESSION['userLevel'] < 3) { http_response_code(403); + die("Vous n'êtes pas autorisé à accéder à cette ressource"); } $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlDatabasePass);