Files
automatisch/packages/backend/src/helpers/check-is-enterprise.js
2024-02-19 21:22:36 +01:00

10 lines
224 B
JavaScript

import { hasValidLicense } from './license.ee.js';
export const checkIsEnterprise = async (request, response, next) => {
if (await hasValidLicense()) {
next();
} else {
return response.status(404).end();
}
};