- everyone is allowed to download published files

This commit is contained in:
Arno Kaimbacher 2019-09-13 13:28:28 +02:00
parent 5c66a33e51
commit 5ff1ba7c6a
3 changed files with 30 additions and 22 deletions

View file

@ -2,15 +2,17 @@
@extends('layouts.app')
@section('content')
<div class='col-lg-4 col-lg-offset-4'>
<h1><center>403<br>
ACCESS DENIED</center></h1>
<section class="normal dataset u-full-width">
<div class="container">
<h1>
<center>403<br>
ACCESS DENIED</center>
</h1>
<a href="{{ URL::previous() }}" class="btn btn-default">Back</a>
<h2>{{ $exception->getMessage() }}</h2>
</div>
</section>
@endsection
@endsection

View file

@ -44,7 +44,7 @@
<tr>
<td>
@if($file->exists() === true)
<a href="{{ route('settings.file.download', ['id' => $file->id]) }}"> {{ $file->path_name }} </a>
<a href="{{ route('file.download', ['id' => $file->id]) }}"> {{ $file->path_name }} </a>
@else
<span class="alert">missing file: {{ $file->path_name }}</span>
@endif