mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:34:39 -04:00
Added user permission to tranformer
This commit is contained in:
parent
17ea888e90
commit
4aa11be28f
@ -26,6 +26,8 @@ class UserTransformer extends EntityTransformer
|
|||||||
'notify_viewed' => (bool) $user->notify_viewed,
|
'notify_viewed' => (bool) $user->notify_viewed,
|
||||||
'notify_paid' => (bool) $user->notify_paid,
|
'notify_paid' => (bool) $user->notify_paid,
|
||||||
'notify_approved' => (bool) $user->notify_approved,
|
'notify_approved' => (bool) $user->notify_approved,
|
||||||
|
'is_admin' => (bool) $user->is_admin,
|
||||||
|
'permissions' => (int) $user->getOriginal('permissions'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user