diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 63ed6ccfc3..6b5874df9b 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -68,7 +68,7 @@ class UsersController extends Controller if (($request->filled('deleted')) && ($request->input('deleted')=='true')) { $users = $users->onlyTrashed(); - } elseif (($request->filled('all')) && ($request->input('deleted')=='true')) { + } elseif (($request->filled('all')) && ($request->input('all')=='true')) { $users = $users->withTrashed(); }