Update template.php

This commit is contained in:
marian1010 2021-03-25 09:46:28 +01:00
parent c46efc73da
commit 981e4fdbd3

View File

@ -78,7 +78,7 @@
$session = $this->session; $session = $this->session;
$session_route =$this->session_route; $session_route =$this->session_route;
$user_route = $this->user_route; $user_route = $this->user_route;
$panel =$this->panel;
if(isset($_SESSION["nombre"])){ if(isset($_SESSION["nombre"])){
if($_SESSION["rol"] == "admin") $user_route = 'panel_admin/'; if($_SESSION["rol"] == "admin") $user_route = 'panel_admin/';
else if($_SESSION["rol"] == "manager") $user_route = 'panel_manager/'; else if($_SESSION["rol"] == "manager") $user_route = 'panel_manager/';