From a31c906a687b54b905b092629be513735b8702cc Mon Sep 17 00:00:00 2001 From: Adam Balan Date: Thu, 12 Oct 2023 15:47:55 -0600 Subject: [PATCH] Fixed issue with map details page --- resources/views/admin/maps/partials/map-details.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/maps/partials/map-details.blade.php b/resources/views/admin/maps/partials/map-details.blade.php index a081c2ae4..4d2367f7c 100755 --- a/resources/views/admin/maps/partials/map-details.blade.php +++ b/resources/views/admin/maps/partials/map-details.blade.php @@ -1,8 +1,10 @@ @php $backUrl = route('maps'); - - if ( + + if (!auth()->user()) { + $backUrl = '/information/planes'; + } elseif ( !auth() ->user() ->hasRole('Admin')