Skip to content

Commit

Permalink
Fixed issue with map details page
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Oct 12, 2023
1 parent f75815f commit a31c906
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/admin/maps/partials/map-details.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<x-core.layout.info-container>
@php
$backUrl = route('maps');
if (
if (!auth()->user()) {
$backUrl = '/information/planes';
} elseif (
!auth()
->user()
->hasRole('Admin')
Expand Down

0 comments on commit a31c906

Please sign in to comment.