diff --git a/app/middlewares/UserMiddleware.php b/app/middlewares/UserMiddleware.php index 66db4024..5f44ec77 100755 --- a/app/middlewares/UserMiddleware.php +++ b/app/middlewares/UserMiddleware.php @@ -26,7 +26,7 @@ static function user($user){ $user = (object) array_merge((array) $user, (array) $guide); return $user; } - if ($user['role'] == 'rental_service') { + if ($user['role'] == 'rentalservice') { $rental_service = new RentalServiceModel; $rental_service = $rental_service->first([ 'user_id'=> $user['id'] @@ -43,11 +43,3 @@ static function user($user){ } } - - - - - - - -?> \ No newline at end of file diff --git a/app/views/components/navbar.php b/app/views/components/navbar.php index 3d6d95c5..4d4becce 100755 --- a/app/views/components/navbar.php +++ b/app/views/components/navbar.php @@ -15,6 +15,7 @@ role != 'admin') { $user = $_SESSION['USER']; ?> +
Name | Status | @@ -177,16 +183,16 @@01/09/2023 | 10.00 |
---|