mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
API changes for mobile app
This commit is contained in:
parent
83a106142f
commit
9fa50c1675
@ -57,6 +57,7 @@ class UserAccountTransformer extends EntityTransformer
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $availableIncludes = [
|
protected $availableIncludes = [
|
||||||
|
'users',
|
||||||
'tax_rates',
|
'tax_rates',
|
||||||
'expense_categories',
|
'expense_categories',
|
||||||
'account_email_settings',
|
'account_email_settings',
|
||||||
@ -83,6 +84,18 @@ class UserAccountTransformer extends EntityTransformer
|
|||||||
*
|
*
|
||||||
* @return \League\Fractal\Resource\Collection
|
* @return \League\Fractal\Resource\Collection
|
||||||
*/
|
*/
|
||||||
|
public function includeUsers(User $user)
|
||||||
|
{
|
||||||
|
$transformer = new UserTransformer($this->account, $this->serializer);
|
||||||
|
|
||||||
|
return $this->includeCollection($this->account->users, $transformer, 'users');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Account $account
|
||||||
|
*
|
||||||
|
* @return \League\Fractal\Resource\Collection
|
||||||
|
*/
|
||||||
public function includeAccountEmailSettings(User $user)
|
public function includeAccountEmailSettings(User $user)
|
||||||
{
|
{
|
||||||
$transformer = new AccountEmailSettingsTransformer($this->account, $this->serializer);
|
$transformer = new AccountEmailSettingsTransformer($this->account, $this->serializer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user