From a2ceae118ea7e3bcc89f5c7884c08756150007d4 Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 7 Mar 2024 07:55:22 +0100 Subject: [PATCH] clean odmdb.js --- routes/odmdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/odmdb.js b/routes/odmdb.js index 0a5165c..259bbd6 100644 --- a/routes/odmdb.js +++ b/routes/odmdb.js @@ -263,7 +263,7 @@ router.get( const objectId = req.params.primaryindex; let objectLocation = "../nationchains/"; if (!conf.api.nationObjects.includes(objectName)) { - objectLocation += `tribes/${req.session.headers.xtribe}/${objectName}`; + objectLocation += `tribes/${req.session.header.xtribe}/${objectName}`; // check if accessright on object on item // in case not res.status(403) }