From bee27dbb6924cd2eeca007585be1ea10978954ed Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 25 Feb 2019 15:26:17 +0200 Subject: [PATCH] Fix for tests --- app/Models/EntityModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/EntityModel.php b/app/Models/EntityModel.php index fb17ac2a5934..155b066135ec 100644 --- a/app/Models/EntityModel.php +++ b/app/Models/EntityModel.php @@ -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); }