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']); }