New API stuff

This commit is contained in:
James Cole
2024-08-02 13:45:41 +02:00
parent 7e37d10016
commit 76a41fec50
5 changed files with 35 additions and 2 deletions

View File

@@ -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();