1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Http/Requests/ProposalTemplateRequest.php
2019-01-30 22:25:07 +11:00

24 lines
449 B
PHP

<?php
namespace App\Http\Requests;
/**
* Class ProposalTemplateRequest
* @package App\Http\Requests
*/
class ProposalTemplateRequest extends EntityRequest
{
/**
* @var string
*/
protected $entityType = ENTITY_PROPOSAL_TEMPLATE;
/**
* @return bool
*/
public function authorize()
{
return $this->user()->can('view', ENTITY_PROPOSAL) || $this->user()->can('createEntity', ENTITY_PROPOSAL);
}
}