mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
24 lines
449 B
PHP
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);
|
|
}
|
|
}
|