- everyone is allowed to download published files
This commit is contained in:
parent
5c66a33e51
commit
5ff1ba7c6a
|
@ -2,15 +2,17 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class='col-lg-4 col-lg-offset-4'>
|
<section class="normal dataset u-full-width">
|
||||||
<h1><center>403<br>
|
<div class="container">
|
||||||
ACCESS DENIED</center></h1>
|
|
||||||
|
<h1>
|
||||||
|
<center>403<br>
|
||||||
|
ACCESS DENIED</center>
|
||||||
|
</h1>
|
||||||
<a href="{{ URL::previous() }}" class="btn btn-default">Back</a>
|
<a href="{{ URL::previous() }}" class="btn btn-default">Back</a>
|
||||||
<h2>{{ $exception->getMessage() }}</h2>
|
<h2>{{ $exception->getMessage() }}</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if($file->exists() === true)
|
@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
|
@else
|
||||||
<span class="alert">missing file: {{ $file->path_name }}</span>
|
<span class="alert">missing file: {{ $file->path_name }}</span>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -25,6 +25,12 @@ Route::get(
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//=============================================================================================================
|
||||||
|
//=================================================file download=============================================
|
||||||
|
Route::get('file/download/{id}', [
|
||||||
|
'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
||||||
|
]);
|
||||||
|
|
||||||
//=================================================publish datasets================================================
|
//=================================================publish datasets================================================
|
||||||
Route::group(
|
Route::group(
|
||||||
[
|
[
|
||||||
|
@ -83,7 +89,7 @@ Route::group(
|
||||||
'middleware' => ['isUserDatasetAdmin:true'],
|
'middleware' => ['isUserDatasetAdmin:true'],
|
||||||
'as' => 'workflow.submit.deleteUpdate', 'uses' => 'SubmitController@deleteUpdate',
|
'as' => 'workflow.submit.deleteUpdate', 'uses' => 'SubmitController@deleteUpdate',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//editor
|
//editor
|
||||||
Route::get('workflow/editor/index', [
|
Route::get('workflow/editor/index', [
|
||||||
'middleware' => ['permission:dataset-editor-list'],
|
'middleware' => ['permission:dataset-editor-list'],
|
||||||
|
@ -188,16 +194,16 @@ Route::group(
|
||||||
'as' => 'user.create', 'uses' => 'UserController@create', 'middleware' => ['permission:settings'],
|
'as' => 'user.create', 'uses' => 'UserController@create', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::post('user/store', [
|
Route::post('user/store', [
|
||||||
'as' => 'user.store', 'uses' => 'UserController@store','middleware' => ['permission:settings'],
|
'as' => 'user.store', 'uses' => 'UserController@store', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::get('user/edit/{id}', [
|
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}', [
|
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}', [
|
Route::get('user/destroy/{id}', [
|
||||||
'as' => 'user.destroy', 'uses' => 'UserController@destroy','middleware' => ['permission:settings'],
|
'as' => 'user.destroy', 'uses' => 'UserController@destroy', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//Route::resource('users','RoleController');
|
//Route::resource('users','RoleController');
|
||||||
|
@ -205,16 +211,16 @@ Route::group(
|
||||||
'as' => 'role.index', 'uses' => 'RoleController@index', 'middleware' => ['permission:settings'],
|
'as' => 'role.index', 'uses' => 'RoleController@index', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::get('role/create', [
|
Route::get('role/create', [
|
||||||
'as' => 'role.create', 'uses' => 'RoleController@create','middleware' => ['permission:settings'],
|
'as' => 'role.create', 'uses' => 'RoleController@create', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::post('role/store', [
|
Route::post('role/store', [
|
||||||
'as' => 'role.store', 'uses' => 'RoleController@store','middleware' => ['permission:settings'],
|
'as' => 'role.store', 'uses' => 'RoleController@store', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::get('role/edit/{id}', [
|
Route::get('role/edit/{id}', [
|
||||||
'as' => 'role.edit', 'uses' => 'RoleController@edit','middleware' => ['permission:settings'],
|
'as' => 'role.edit', 'uses' => 'RoleController@edit', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
Route::patch('role/update/{id}', [
|
Route::patch('role/update/{id}', [
|
||||||
'as' => 'role.update', 'uses' => 'RoleController@update','middleware' => ['permission:settings'],
|
'as' => 'role.update', 'uses' => 'RoleController@update', 'middleware' => ['permission:settings'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -269,11 +275,11 @@ Route::group(['middleware' => ['permission:settings']], function () {
|
||||||
Route::get('settings/file/download/{id}', [
|
Route::get('settings/file/download/{id}', [
|
||||||
'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
||||||
]);
|
]);
|
||||||
//=============================================================================================================
|
// //=============================================================================================================
|
||||||
//=================================================setting file=============================================
|
// //=================================================setting file=============================================
|
||||||
Route::get('settings/file/download/{id}', [
|
// Route::get('settings/file/download/{id}', [
|
||||||
'as' => 'settings.file.download', 'uses' => 'Settings\FileController@download',
|
// 'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
//=================================================setting mimetype=============================================
|
//=================================================setting mimetype=============================================
|
||||||
Route::get('/settings/mimetype', [
|
Route::get('/settings/mimetype', [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user