From 68d02648d7e3accfaaf194151dce9ffa68bea88c Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Wed, 28 Aug 2024 16:15:32 -0700 Subject: [PATCH] IO-2890 Gate if environment isn't Production Signed-off-by: Allan Carr --- server/data/kaizen.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/data/kaizen.js b/server/data/kaizen.js index 1dccef61c..1670988f3 100644 --- a/server/data/kaizen.js +++ b/server/data/kaizen.js @@ -31,6 +31,12 @@ const ftpSetup = { }; exports.default = async (req, res) => { + // Only process if in production environment. + if (process.env.NODE_ENV !== "production") { + res.sendStatus(403); + return; + } + //Query for the List of Bodyshop Clients. logger.log("kaizen-start", "DEBUG", "api", null, null); const kaizenShopsIDs = ["SUMMIT", "STRATHMORE", "SUNRIDGE", "SHAW"];