- everyone is allowed to download published files
This commit is contained in:
parent
5c66a33e51
commit
5ff1ba7c6a
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -25,6 +25,12 @@ Route::get(
|
|||
]
|
||||
);
|
||||
|
||||
//=============================================================================================================
|
||||
//=================================================file download=============================================
|
||||
Route::get('file/download/{id}', [
|
||||
'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
||||
]);
|
||||
|
||||
//=================================================publish datasets================================================
|
||||
Route::group(
|
||||
[
|
||||
|
@ -191,10 +197,10 @@ Route::group(
|
|||
'as' => 'user.store', 'uses' => 'UserController@store', 'middleware' => ['permission:settings'],
|
||||
]);
|
||||
Route::get('user/edit/{id}', [
|
||||
'as' => 'user.edit', 'uses' => 'UserController@edit', 'middleware' => ['auth']
|
||||
'as' => 'user.edit', 'uses' => 'UserController@edit', 'middleware' => ['auth'],
|
||||
]);
|
||||
Route::patch('user/update/{id}', [
|
||||
'as' => 'user.update', 'uses' => 'UserController@update', 'middleware' => ['auth']
|
||||
'as' => 'user.update', 'uses' => 'UserController@update', 'middleware' => ['auth'],
|
||||
]);
|
||||
Route::get('user/destroy/{id}', [
|
||||
'as' => 'user.destroy', 'uses' => 'UserController@destroy', 'middleware' => ['permission:settings'],
|
||||
|
@ -269,11 +275,11 @@ Route::group(['middleware' => ['permission:settings']], function () {
|
|||
Route::get('settings/file/download/{id}', [
|
||||
'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
||||
]);
|
||||
//=============================================================================================================
|
||||
//=================================================setting file=============================================
|
||||
Route::get('settings/file/download/{id}', [
|
||||
'as' => 'settings.file.download', 'uses' => 'Settings\FileController@download',
|
||||
]);
|
||||
// //=============================================================================================================
|
||||
// //=================================================setting file=============================================
|
||||
// Route::get('settings/file/download/{id}', [
|
||||
// 'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
||||
// ]);
|
||||
|
||||
//=================================================setting mimetype=============================================
|
||||
Route::get('/settings/mimetype', [
|
||||
|
|
Loading…
Reference in New Issue
Block a user