1
0
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:
David Bomba 2016-05-09 09:54:40 +10:00
parent 5197db449e
commit f6abdedfac

View File

@ -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
];
}