From 4bdffcc98fec88b41a9d5e9350aab6b1839eae04 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 12:32:28 +0000 Subject: [PATCH] Update 2 files - /html/admin.php - /html/compte.php --- html/admin.php | 2 +- html/compte.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/html/admin.php b/html/admin.php index 56763e40..92368cf2 100644 --- a/html/admin.php +++ b/html/admin.php @@ -2,7 +2,7 @@ require "../include/variables.php"; require "../include/functions.php"; -if($_SESSION['role'] < 1) { +if($_SESSION['role'] < 3) { header("Location: index.php"); http_response_code(404); die(); diff --git a/html/compte.php b/html/compte.php index c700b680..be71bb03 100644 --- a/html/compte.php +++ b/html/compte.php @@ -245,6 +245,7 @@ if($resultat) {