print_panelMenu("manager");
+ $template->print_panelMenu($_SESSION["rol"]);
?>
diff --git a/panel_user/index.php b/panel_user/index.php
index 8f7a40b..8c53813 100644
--- a/panel_user/index.php
+++ b/panel_user/index.php
@@ -6,7 +6,7 @@
//Controller file:
include_once('panelUser.php');
- if($_SESSION["login"]){
+ if($_SESSION["login"] && $_SESSION["rol"] === "user"){
switch($_GET["option"]){
case "manage_profile":
$reply = UserPanel::manage();
@@ -63,7 +63,7 @@
print_panelMenu("user");
+ $template->print_panelMenu($_SESSION["rol"]);
?>
diff --git a/panel_user/panelUser.php b/panel_user/panelUser.php
index 49e5fbd..c80731b 100644
--- a/panel_user/panelUser.php
+++ b/panel_user/panelUser.php
@@ -1,5 +1,5 @@