Restrict Simbrief to user who generated it (#1064)

* Restrict simbrief to user

* Style fixes

* Add tests

* Style fix
This commit is contained in:
Nabeel S
2021-03-06 13:49:42 -05:00
committed by GitHub
parent b3af50ac5a
commit 950c7788be
5 changed files with 93 additions and 6 deletions

View File

@@ -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