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 +?>