fix map-info-box display (#1104)
* fix map-info-box display * Check user on PIREP show/edit/update/submit * add missing use * refactoring according to comments; use UpdatePirepRequest for authorization and make user available to view Co-authored-by: Andreas Palm <ap@ewsp.de> Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
co-authored by
Andreas Palm
Nabeel S
parent
d4c301a36c
commit
1e320835c2
@@ -15,7 +15,7 @@
|
||||
class="btn btn-outline-info">View SimBrief</a>
|
||||
@endif
|
||||
|
||||
@if(!$pirep->read_only)
|
||||
@if(!$pirep->read_only && $pirep->user_id === $user->id)
|
||||
<div class="float-right" style="margin-bottom: 10px;">
|
||||
<form method="get"
|
||||
action="{{ route('frontend.pireps.edit', $pirep->id) }}"
|
||||
|
||||
Reference in New Issue
Block a user