Integrated the isEnabled field into the click action
This commit is contained in:
@ -10,6 +10,7 @@ app.get("/", async (req, res) => {
|
|||||||
|
|
||||||
const link = await getLinkByAccess(res.locals.accessId, currentDomain);
|
const link = await getLinkByAccess(res.locals.accessId, currentDomain);
|
||||||
if (!link) return sendNotFound(res);
|
if (!link) return sendNotFound(res);
|
||||||
|
if (!link.isEnabled) return sendNotFound(res);
|
||||||
|
|
||||||
const module = getModule(link.type);
|
const module = getModule(link.type);
|
||||||
if (!module) return sendNotFound(res);
|
if (!module) return sendNotFound(res);
|
||||||
|
Reference in New Issue
Block a user