diff --git a/assets/php/common/reRol.php b/assets/php/common/resetRol.php similarity index 69% rename from assets/php/common/reRol.php rename to assets/php/common/resetRol.php index dde453f..296d6f1 100644 --- a/assets/php/common/reRol.php +++ b/assets/php/common/resetRol.php @@ -7,5 +7,6 @@ function reRol(){ } } reRol(); -header("Location: /"); -?> \ No newline at end of file +$redirect = ROUTE_APP.'panel_'.$_SESSION['rol']; +header("Location: {$redirect}"); +?>