mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Removed download button for files that don’t exist on the server
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4aded5e117
commit
d4ac7530b6
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue