1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for user permissions

This commit is contained in:
Hillel Coren 2016-08-09 09:48:41 +03:00
parent e36db657cc
commit 8256e88286
3 changed files with 25 additions and 1 deletions

View File

@ -8,6 +8,14 @@ use DB;
*/
class Document extends EntityModel
{
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_DOCUMENT;
}
/**
* @var array
*/

View File

@ -7,6 +7,14 @@ use Illuminate\Database\Eloquent\SoftDeletes;
*/
class InvoiceItem extends EntityModel
{
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_INVOICE_ITEM;
}
use SoftDeletes;
/**
* @var array
@ -20,7 +28,7 @@ class InvoiceItem extends EntityModel
'tax_name1',
'tax_rate1',
'tax_name2',
'tax_rate2',
'tax_rate2',
];
/**

View File

@ -14,6 +14,14 @@ class Task extends EntityModel
use SoftDeletes;
use PresentableTrait;
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_TASK;
}
/**
* @var string
*/