diff --git a/packages/backend/src/helpers/check-is-enterprise.js b/packages/backend/src/helpers/check-is-enterprise.js new file mode 100644 index 00000000..0180eea2 --- /dev/null +++ b/packages/backend/src/helpers/check-is-enterprise.js @@ -0,0 +1,9 @@ +import { hasValidLicense } from './license.ee.js'; + +export const checkIsEnterprise = async (request, response, next) => { + if (await hasValidLicense()) { + next(); + } else { + return response.status(404).end(); + } +};