forked from apxtri/apxtri
fix accessright pagans to create a person
This commit is contained in:
parent
1d40891aee
commit
8c733d8bc0
@ -164,7 +164,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => {
|
|||||||
const persondata = {
|
const persondata = {
|
||||||
alias: req.body.alias,
|
alias: req.body.alias,
|
||||||
owner: req.body.alias,
|
owner: req.body.alias,
|
||||||
profils: ["pagans", "persons"],
|
profils: ["anonymous","pagans", "persons"],
|
||||||
recoveryauth: {
|
recoveryauth: {
|
||||||
email: req.body.email,
|
email: req.body.email,
|
||||||
privatekey: req.body.privatekey,
|
privatekey: req.body.privatekey,
|
||||||
@ -172,7 +172,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => {
|
|||||||
passphrase: req.body.passphrase,
|
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 (log) console.log(currentmod,'person create',personup)
|
||||||
if (personup.status==200){
|
if (personup.status==200){
|
||||||
createprocess.data.createperson=true;
|
createprocess.data.createperson=true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user