koel/app/Http/Requests/API/Download/Request.php

24 lines
397 B
PHP
Raw Normal View History

2016-06-02 17:53:26 +00:00
<?php
namespace App\Http\Requests\API\Download;
use App\Http\Requests\API\Request as BaseRequest;
class Request extends BaseRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
2016-08-21 15:19:03 +00:00
return config('koel.download.allow');
2016-06-02 17:53:26 +00:00
}
2016-06-04 17:10:29 +00:00
public function rules()
{
return [];
}
2016-06-02 17:53:26 +00:00
}