Merge branch 'api' into develop

# Conflicts:
#	app/JsonApi/V3/Accounts/AccountRepository.php
#	app/JsonApi/V3/Accounts/AccountResource.php
#	app/JsonApi/V3/Accounts/Capabilities/AccountQuery.php
#	app/JsonApi/V3/Users/UserSchema.php
This commit is contained in:
James Cole
2024-05-10 12:52:44 +02:00
9 changed files with 325 additions and 13 deletions

View File

@@ -53,4 +53,19 @@ class AccountPolicy
return true;
return auth()->check();
}
/**
* Everybody can do this, but selection should limit to user.
*
* @return true
*/
public function viewUser(User $user, Account $account): bool
{
return $this->view($user, $account);
}
public function viewBalances(User $user, Account $account): bool
{
return $this->view($user, $account);
}
}