n8n
Version:
n8n Workflow Automation Tool
23 lines • 845 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.samlLicensedMiddleware = exports.samlLicensedAndEnabledMiddleware = void 0;
const samlHelpers_1 = require("../samlHelpers");
const samlLicensedAndEnabledMiddleware = (_, res, next) => {
if ((0, samlHelpers_1.isSamlLicensedAndEnabled)()) {
next();
}
else {
res.status(403).json({ status: 'error', message: 'Unauthorized' });
}
};
exports.samlLicensedAndEnabledMiddleware = samlLicensedAndEnabledMiddleware;
const samlLicensedMiddleware = (_, res, next) => {
if ((0, samlHelpers_1.isSamlLicensed)()) {
next();
}
else {
res.status(403).json({ status: 'error', message: 'Unauthorized' });
}
};
exports.samlLicensedMiddleware = samlLicensedMiddleware;
//# sourceMappingURL=samlEnabledMiddleware.js.map
;