1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00

Fix for expense documents

This commit is contained in:
Hillel Coren 2016-11-13 09:14:40 +02:00
parent 79d745a26b
commit a9a94df973

View File

@ -1857,11 +1857,13 @@ class Account extends Eloquent
public function isModuleEnabled($entityType)
{
if (in_array($entityType, [
ENTITY_CLIENT,
ENTITY_INVOICE,
ENTITY_PRODUCT,
ENTITY_PAYMENT,
if ( ! in_array($entityType, [
ENTITY_RECURRING_INVOICE,
ENTITY_CREDIT,
ENTITY_QUOTE,
ENTITY_TASK,
ENTITY_EXPENSE,
ENTITY_VENDOR,
])) {
return true;
}