Update template.php
This commit is contained in:
parent
981e4fdbd3
commit
6638722c8b
@ -79,6 +79,7 @@
|
|||||||
$session_route =$this->session_route;
|
$session_route =$this->session_route;
|
||||||
$user_route = $this->user_route;
|
$user_route = $this->user_route;
|
||||||
$panel =$this->panel;
|
$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/';
|
||||||
@ -173,4 +174,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user