Restrict Simbrief to user who generated it (#1064)
* Restrict simbrief to user * Style fixes * Add tests * Style fix
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
@endif
|
||||
|
||||
<!-- If this flight has a briefing, show the link to view it-->
|
||||
@if ($flight->simbrief)
|
||||
@if ($flight->simbrief && $flight->simbrief->user_id === $user->id)
|
||||
<a href="{{ route('frontend.simbrief.briefing', $flight->simbrief->id) }}"
|
||||
class="btn btn-sm btn-outline-primary">
|
||||
View Simbrief Flight Plan
|
||||
|
||||
Reference in New Issue
Block a user