1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 09:21:34 +02: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
{
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_DOCUMENT;
}
/**
* @var array
*/

View File

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

View File

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