fixed permissions

This commit is contained in:
denisdulici 2017-09-28 18:18:37 +03:00
parent 80c278ab12
commit fe2cf62bd4
2 changed files with 3 additions and 3 deletions

View File

@ -8,13 +8,13 @@ use Storage;
class Uploads extends Controller class Uploads extends Controller
{ {
/** /**
* Show the specified resource. * Get the specified resource.
* *
* @param $folder * @param $folder
* @param $file * @param $file
* @return boolean|Response * @return boolean|Response
*/ */
public function show($folder, $file) public function get($folder, $file)
{ {
// Get file path // Get file path
if (!$path = $this->getPath($folder, $file)) { if (!$path = $this->getPath($folder, $file)) {

View File

@ -10,7 +10,7 @@ Route::group(['middleware' => ['auth', 'language', 'adminmenu', 'permission:read
Route::get('/', 'Dashboard\Dashboard@index'); Route::get('/', 'Dashboard\Dashboard@index');
Route::group(['prefix' => 'uploads'], function () { Route::group(['prefix' => 'uploads'], function () {
Route::get('{folder}/{file}', 'Common\Uploads@show'); Route::get('{folder}/{file}', 'Common\Uploads@get');
Route::get('{folder}/{file}/download', 'Common\Uploads@download'); Route::get('{folder}/{file}/download', 'Common\Uploads@download');
}); });