From 6a94a2f51586a9fbeeeff183a7d048e87c0dfcae Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 16 Apr 2023 15:25:26 -0700 Subject: [PATCH] Return true/false for autoassign_licenses in the API Signed-off-by: snipe --- app/Http/Transformers/UsersTransformer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Transformers/UsersTransformer.php b/app/Http/Transformers/UsersTransformer.php index 9447d65455..867a884619 100644 --- a/app/Http/Transformers/UsersTransformer.php +++ b/app/Http/Transformers/UsersTransformer.php @@ -56,6 +56,7 @@ class UsersTransformer 'notes'=> e($user->notes), 'permissions' => $user->decodePermissions(), 'activated' => ($user->activated == '1') ? true : false, + 'autoassign_licenses' => ($user->autoassign_licenses == '1') ? true : false, 'ldap_import' => ($user->ldap_import == '1') ? true : false, 'two_factor_enrolled' => ($user->two_factor_active_and_enrolled()) ? true : false, 'two_factor_optin' => ($user->two_factor_active()) ? true : false,