mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New API stuff
This commit is contained in:
@@ -33,6 +33,7 @@ class AccountPolicy
|
||||
*/
|
||||
public function view(User $user, Account $account): bool
|
||||
{
|
||||
die('OK');
|
||||
return true;
|
||||
|
||||
return auth()->check() && $user->id === $account->user_id;
|
||||
@@ -45,6 +46,7 @@ class AccountPolicy
|
||||
*/
|
||||
public function viewAny(): bool
|
||||
{
|
||||
die('OK');
|
||||
return true;
|
||||
|
||||
return auth()->check();
|
||||
|
Reference in New Issue
Block a user