From 8c733d8bc03455d4678e80c9d0e5b539d70980c8 Mon Sep 17 00:00:00 2001 From: philc Date: Wed, 29 May 2024 09:42:11 +0200 Subject: [PATCH] fix accessright pagans to create a person --- routes/pagans.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/pagans.js b/routes/pagans.js index 4988ff8..49f5f94 100755 --- a/routes/pagans.js +++ b/routes/pagans.js @@ -164,7 +164,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => { const persondata = { alias: req.body.alias, owner: req.body.alias, - profils: ["pagans", "persons"], + profils: ["anonymous","pagans", "persons"], recoveryauth: { email: req.body.email, privatekey: req.body.privatekey, @@ -172,7 +172,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => { passphrase: req.body.passphrase, }, }; - const personup = Odmdb.cud(`../../${req.body.trustedtribe}/objects/persons`, "C", persondata, {xprofils:["pagan"],xalias:req.body.alias}); + const personup = Odmdb.cud(`../../${req.body.trustedtribe}/objects/persons`, "C", persondata, {xprofils:["anonymous","pagans"],xalias:req.body.alias}); if (log) console.log(currentmod,'person create',personup) if (personup.status==200){ createprocess.data.createperson=true;