diff --git a/app/Models/EntityModel.php b/app/Models/EntityModel.php index 5610fc2f91b5..5a46f724f923 100644 --- a/app/Models/EntityModel.php +++ b/app/Models/EntityModel.php @@ -182,7 +182,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); }