mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Fix for user permissions
This commit is contained in:
parent
6c9c892d7c
commit
0f391e8c8b
@ -8,6 +8,14 @@ use DB;
|
||||
*/
|
||||
class Document extends EntityModel
|
||||
{
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getEntityType()
|
||||
{
|
||||
return ENTITY_DOCUMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
|
@ -13,6 +13,14 @@ class InvoiceItem extends EntityModel
|
||||
*/
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getEntityType()
|
||||
{
|
||||
return ENTITY_INVOICE_ITEM;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@ -20,7 +28,7 @@ class InvoiceItem extends EntityModel
|
||||
'tax_name1',
|
||||
'tax_rate1',
|
||||
'tax_name2',
|
||||
'tax_rate2',
|
||||
'tax_rate2',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -14,6 +14,14 @@ class Task extends EntityModel
|
||||
use SoftDeletes;
|
||||
use PresentableTrait;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getEntityType()
|
||||
{
|
||||
return ENTITY_TASK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user