bug fix
This commit is contained in:
parent
7b29e4194b
commit
d8fc125307
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
session_start();
|
||||||
|
|
||||||
// Check if user is logged in and is an admin
|
// Check if user is logged in and is an admin
|
||||||
if (!isset($_SESSION["utilisateur_authentifie"]) || $_SESSION["utilisateur_authentifie"] !== true || !$_SESSION["admin"]) {
|
if (!isset($_SESSION["utilisateur_authentifie"]) || $_SESSION["utilisateur_authentifie"] !== true || !$_SESSION["admin"]) {
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
|
|
Loading…
Reference in a new issue