From bf19a77053ca09fb1add098c155286c2cd307e23 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 18 Oct 2016 14:11:01 +0300 Subject: [PATCH] Allow all users to see tax rates --- 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 4c0e88d9ac..b0933ea159 100644 --- a/app/Models/EntityModel.php +++ b/app/Models/EntityModel.php @@ -136,7 +136,7 @@ class EntityModel extends Eloquent } } - if (Auth::check() && ! Auth::user()->hasPermission('view_all')) { + if (Auth::check() && ! Auth::user()->hasPermission('view_all') && $this->getEntityType() != ENTITY_TAX_RATE) { $query->where(Utils::pluralizeEntityType($this->getEntityType()) . '.user_id', '=', Auth::user()->id); }