Removed duplicate locations_id search

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-19 10:35:21 +01:00
parent 61e10be04d
commit 6c17b141db

View file

@ -203,9 +203,6 @@ class UsersController extends Controller
$users->where('autoassign_licenses', '=', $request->input('autoassign_licenses')); $users->where('autoassign_licenses', '=', $request->input('autoassign_licenses'));
} }
if ($request->filled('location_id') != '') {
$users = $users->UserLocation($request->input('location_id'), $request->input('search'));
}
if (($request->filled('deleted')) && ($request->input('deleted') == 'true')) { if (($request->filled('deleted')) && ($request->input('deleted') == 'true')) {
$users = $users->onlyTrashed(); $users = $users->onlyTrashed();