Update template.php
This commit is contained in:
parent
c46efc73da
commit
981e4fdbd3
@ -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/';
|
||||||
|
Loading…
Reference in New Issue
Block a user