Add ID to the allowed sort fields in api/Users. (#5929)

This commit is contained in:
Daniel Meltzer 2018-07-23 09:46:50 -04:00 committed by snipe
parent 82194cef8a
commit 3bc43210ab

View file

@ -105,7 +105,7 @@ class UsersController extends Controller
'assets','accessories', 'consumables','licenses','groups','activated','created_at',
'two_factor_enrolled','two_factor_optin','last_login', 'assets_count', 'licenses_count',
'consumables_count', 'accessories_count', 'phone', 'address', 'city', 'state',
'country', 'zip'
'country', 'zip', 'id'
];
$sort = in_array($request->get('sort'), $allowed_columns) ? $request->get('sort') : 'first_name';