mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Fix for tests
This commit is contained in:
parent
9dd1462d65
commit
27f0fb9474
@ -182,7 +182,7 @@ class EntityModel extends Eloquent
|
|||||||
if (Auth::check() && method_exists($this, 'getEntityType')
|
if (Auth::check() && method_exists($this, 'getEntityType')
|
||||||
&& ! Auth::user()->hasPermission('view_' . $this->getEntityType())
|
&& ! Auth::user()->hasPermission('view_' . $this->getEntityType())
|
||||||
&& $this->getEntityType() != ENTITY_TAX_RATE
|
&& $this->getEntityType() != ENTITY_TAX_RATE
|
||||||
&& $this->getEntityType() != ENTITY_TICKET
|
&& $this->getEntityType() != ENTITY_DOCUMENT
|
||||||
&& $this->getEntityType() != ENTITY_INVITATION) {
|
&& $this->getEntityType() != ENTITY_INVITATION) {
|
||||||
$query->where(Utils::pluralizeEntityType($this->getEntityType()) . '.user_id', '=', Auth::user()->id);
|
$query->where(Utils::pluralizeEntityType($this->getEntityType()) . '.user_id', '=', Auth::user()->id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user