mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Return true/false for autoassign_licenses in the API
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f40bef8f9b
commit
6a94a2f515
|
@ -56,6 +56,7 @@ class UsersTransformer
|
||||||
'notes'=> e($user->notes),
|
'notes'=> e($user->notes),
|
||||||
'permissions' => $user->decodePermissions(),
|
'permissions' => $user->decodePermissions(),
|
||||||
'activated' => ($user->activated == '1') ? true : false,
|
'activated' => ($user->activated == '1') ? true : false,
|
||||||
|
'autoassign_licenses' => ($user->autoassign_licenses == '1') ? true : false,
|
||||||
'ldap_import' => ($user->ldap_import == '1') ? true : false,
|
'ldap_import' => ($user->ldap_import == '1') ? true : false,
|
||||||
'two_factor_enrolled' => ($user->two_factor_active_and_enrolled()) ? true : false,
|
'two_factor_enrolled' => ($user->two_factor_active_and_enrolled()) ? true : false,
|
||||||
'two_factor_optin' => ($user->two_factor_active()) ? true : false,
|
'two_factor_optin' => ($user->two_factor_active()) ? true : false,
|
||||||
|
|
Loading…
Reference in a new issue