From 45d0570e621dd1a1b0d8474b5d7d28333b20f7e1 Mon Sep 17 00:00:00 2001 From: marian1010 <79144276+marian1010@users.noreply.github.com> Date: Tue, 13 Apr 2021 21:58:32 +0200 Subject: [PATCH] Update index.php --- panel_admin/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panel_admin/index.php b/panel_admin/index.php index 3ad1eea..7516ee7 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -6,6 +6,8 @@ require_once('../panel_admin/panelAdmin.php'); $template = new Template(); + if(isset($_SESSION["login"]) && $_SESSION["rol"] == "admin") $login = true; + if(isset($_REQUEST['state'])) { $panel = new Panel($_REQUEST['state']); }