1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Allow all users to see tax rates

This commit is contained in:
Hillel Coren 2016-10-18 14:10:46 +03:00
parent b8d0498560
commit 6c02ee2c60

View File

@ -146,7 +146,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);
}