Removed download button for files that don’t exist on the server

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-11-14 22:04:06 +00:00
parent 4aded5e117
commit d4ac7530b6

View file

@ -167,7 +167,7 @@
@endif
</td>
<td>
@if ($file->filename)
@if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename)))
<a href="{{ route('show/modelfile', [$model->id, $file->id]) }}" class="btn btn-default">
<i class="fas fa-download" aria-hidden="true"></i>
</a>