add account balances with some random data

This commit is contained in:
James Cole
2024-05-11 20:32:25 +02:00
parent 7d9f22d3f4
commit d356d39d43
14 changed files with 389 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ class UserPolicy
*
* @return bool
*/
public function view(User $user, Account $account): bool
public function view(User $user, User $user1): bool
{
return true;
return auth()->check() && $user->id === $account->user_id;
@@ -52,4 +52,9 @@ class UserPolicy
return true;
return auth()->check();
}
public function viewAccounts(User $user): bool
{
return true;
return auth()->check();
}
}