fix: prevents self approval
This commit is contained in:
@@ -68,11 +68,15 @@
|
||||
</div>
|
||||
{{-- End .product-owner --}}
|
||||
<div class="action-wrapper py-5 d-flex align-items-center justify-content-center">
|
||||
@if (auth()->user()->artists->first()->id != $thisArtwork->artist_id)
|
||||
<form action="/approve-artworks" method="POST" class="approve-artwork-form" name="approve-artwork-{{ $thisArtwork->id}}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input name="artwork_id" type="hidden" value="{{ $thisArtwork->id }}">
|
||||
<button type="submit" class="btn btn-gradient btn-medium justify-content-center"><span>Approve and Publish</span></button>
|
||||
</form>
|
||||
@else
|
||||
<p>You cannot approve your own</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user