Merge pull request #10683 from snipe/features/add_deleted_only_endpoint_for_licenses

Adds delete endpoint for licenses
This commit is contained in:
snipe 2022-02-16 10:10:22 -07:00 committed by GitHub
commit e9a4ff8e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,10 @@ class LicensesController extends Controller
$licenses = $licenses->TextSearch($request->input('search'));
}
if ($request->filled('deleted')) {
$licenses->onlyTrashed();
}
// Set the offset to the API call's offset, unless the offset is higher than the actual count of items in which
// case we override with the actual count, so we should return 0 items.