mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
add account balances with some random data
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user