mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
User Transformer permissions
This commit is contained in:
parent
5197db449e
commit
f6abdedfac
@ -33,6 +33,8 @@ class UserAccountTransformer extends EntityTransformer
|
||||
'account_key' => $user->account->account_key,
|
||||
'name' => $user->account->present()->name,
|
||||
'token' => $user->account->getToken($user->id, $this->tokenName),
|
||||
'is_admin' => (bool) $user->is_admin,
|
||||
'permissions' => $user->permissions,
|
||||
'default_url' => SITE_URL
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user