Fix for tests
This commit is contained in:
parent
a01f879023
commit
bee27dbb69
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class EntityModel extends Eloquent
|
|||
if (Auth::check() && method_exists($this, 'getEntityType')
|
||||
&& ! Auth::user()->hasPermission('view_' . $this->getEntityType())
|
||||
&& $this->getEntityType() != ENTITY_TAX_RATE
|
||||
&& $this->getEntityType() != ENTITY_TICKET
|
||||
&& $this->getEntityType() != ENTITY_DOCUMENT
|
||||
&& $this->getEntityType() != ENTITY_INVITATION) {
|
||||
$query->where(Utils::pluralizeEntityType($this->getEntityType()) . '.user_id', '=', Auth::user()->id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue