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

@@ -43,6 +43,8 @@ class AccountPolicy
return auth()->check() && $user->id === $account->user_id;
}
/**
* Everybody can do this, but selection should limit to user.
*
@@ -64,7 +66,7 @@ class AccountPolicy
return $this->view($user, $account);
}
public function viewBalances(User $user, Account $account): bool
public function viewAccountBalances(User $user, Account $account): bool
{
return $this->view($user, $account);
}