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

19 lines
335 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()
{
return env('ALLOW_DOWNLOAD', true);
}
}