1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Changed object back to

This commit is contained in:
David Bomba 2016-10-26 12:01:36 +11:00
parent 51b8cc288f
commit 0bef2a0d1a

View File

@ -27,13 +27,13 @@ class UserAccountTransformer extends EntityTransformer
public function transform(User $user)
{
return [
'account_key' => $this->account->account_key,
'name' => $this->account->present()->name,
'token' => $this->account->getToken($user->id, $this->tokenName),
'account_key' => $user->account->account_key,
'name' => $user->account->present()->name,
'token' => $user->account->getToken($user->id, $this->tokenName),
'default_url' => SITE_URL,
'plan' => $this->account->company->plan,
'logo' => $this->account->logo,
'logo_url' => $this->account->getLogoURL(),
'plan' => $user->account->company->plan,
'logo' => $user->account->logo,
'logo_url' => $user->account->getLogoURL(),
];
}
}