mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Adds ldap_import and assets_count filter to user API endpoint
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bdc737ce0c
commit
b72cac3511
|
@ -132,6 +132,14 @@ class UsersController extends Controller
|
||||||
$users = $users->where('users.manager_id','=',$request->input('manager_id'));
|
$users = $users->where('users.manager_id','=',$request->input('manager_id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request->filled('ldap_import')) {
|
||||||
|
$users = $users->where('users.ldap_import', '=', $request->input('ldap_import'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request->filled('assets_count')) {
|
||||||
|
$users->has('assets', '=', $request->input('assets_count'));
|
||||||
|
}
|
||||||
|
|
||||||
if ($request->filled('search')) {
|
if ($request->filled('search')) {
|
||||||
$users = $users->TextSearch($request->input('search'));
|
$users = $users->TextSearch($request->input('search'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue