Skip to content

Commit

Permalink
[Fleet] removed package upload API enterprise license requirement (#1…
Browse files Browse the repository at this point in the history
…59280)

## Summary

The package upload API was made GA, and it had a leftover enterprise
license requirement from the time it was only intended for devs. See
#79653
This pr removes that requirement.
  • Loading branch information
juliaElastic authored Jun 8, 2023
1 parent 8e656cf commit b8619ec
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions x-pack/plugins/fleet/server/routes/epm/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import {
} from '../../services/epm/packages';
import type { BulkInstallResponse } from '../../services/epm/packages';
import { defaultFleetErrorHandler, fleetErrorToResponseOptions, FleetError } from '../../errors';
import { appContextService, checkAllowedPackages, licenseService } from '../../services';
import { appContextService, checkAllowedPackages } from '../../services';
import { getArchiveEntry } from '../../services/epm/archive/cache';
import { getAsset } from '../../services/epm/archive/storage';
import { getPackageUsageStats } from '../../services/epm/packages/get';
Expand Down Expand Up @@ -461,13 +461,6 @@ export const installPackageByUploadHandler: FleetRequestHandler<
undefined,
TypeOf<typeof InstallPackageByUploadRequestSchema.body>
> = async (context, request, response) => {
if (!licenseService.isEnterprise()) {
return response.customError({
statusCode: 403,
body: { message: 'Requires Enterprise license' },
});
}

const coreContext = await context.core;
const fleetContext = await context.fleet;
const savedObjectsClient = fleetContext.internalSoClient;
Expand Down

0 comments on commit b8619ec

Please sign in to comment.