From 6638722c8b282e8dc29b34fbe07c9f4be81cf69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Thu, 25 Mar 2021 10:02:08 +0100 Subject: [PATCH] Update template.php --- assets/php/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/php/template.php b/assets/php/template.php index 126499b..ebf1d49 100644 --- a/assets/php/template.php +++ b/assets/php/template.php @@ -79,6 +79,7 @@ $session_route =$this->session_route; $user_route = $this->user_route; $panel =$this->panel; + if(isset($_SESSION["nombre"])){ if($_SESSION["rol"] == "admin") $user_route = 'panel_admin/'; else if($_SESSION["rol"] == "manager") $user_route = 'panel_manager/'; @@ -173,4 +174,4 @@ } } -?> \ No newline at end of file +?>