mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Merge pull request #1120 from turbo124/develop
Bug Fix UserAccount object
This commit is contained in:
commit
33008a7544
@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user