Fix account access for resellers, added invoices to user home

This commit is contained in:
Deon George
2020-07-10 17:20:22 +10:00
parent dc6ae06f9f
commit 337beee7bf
4 changed files with 67 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ class UserPolicy
OR $user->isWholesaler()
// The user is the reseller
OR $user->all_accounts()->pluck('id')->search($o->id);
OR $user->all_clients()->pluck('id')->search($o->id);
}
/**