1
0
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:
Hillel Coren 2016-08-09 09:49:57 +03:00
parent 6c9c892d7c
commit 0f391e8c8b
3 changed files with 25 additions and 1 deletions

View File

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

View File

@ -13,6 +13,14 @@ class InvoiceItem extends EntityModel
*/ */
protected $dates = ['deleted_at']; protected $dates = ['deleted_at'];
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_INVOICE_ITEM;
}
/** /**
* @var array * @var array
*/ */

View File

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