Added user permission to tranformer
This commit is contained in:
parent
17ea888e90
commit
4aa11be28f
1 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,8 @@ class UserTransformer extends EntityTransformer
|
|||
'notify_viewed' => (bool) $user->notify_viewed,
|
||||
'notify_paid' => (bool) $user->notify_paid,
|
||||
'notify_approved' => (bool) $user->notify_approved,
|
||||
'is_admin' => (bool) $user->is_admin,
|
||||
'permissions' => (int) $user->getOriginal('permissions'),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue