From 1bbac8bb6bac5e9f9bd6cb728e812d6b23bed538 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Wed, 28 Dec 2022 19:24:18 +0100 Subject: [PATCH] Integrated the isEnabled field into the click action --- server/actions/click.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/actions/click.js b/server/actions/click.js index ac6d18e..58273c1 100644 --- a/server/actions/click.js +++ b/server/actions/click.js @@ -10,6 +10,7 @@ app.get("/", async (req, res) => { const link = await getLinkByAccess(res.locals.accessId, currentDomain); if (!link) return sendNotFound(res); + if (!link.isEnabled) return sendNotFound(res); const module = getModule(link.type); if (!module) return sendNotFound(res);