mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Filter by dept for user display
This commit is contained in:
parent
6c623866c0
commit
8caf6623f1
|
@ -52,6 +52,10 @@ class UsersController extends Controller
|
|||
$users = $users->where('company_id','=',$request->input('company_id'));
|
||||
}
|
||||
|
||||
if ($request->has('department_id')) {
|
||||
$users = $users->where('department_id','=',$request->input('department_id'));
|
||||
}
|
||||
|
||||
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';
|
||||
$offset = request('offset', 0);
|
||||
$limit = request('limit', 50);
|
||||
|
|
Loading…
Reference in a new issue