1
0
forked from apxtri/apxtri

mise à jour addprofils et removeprofis

This commit is contained in:
philc 2024-06-10 16:56:35 +02:00
parent aad0a4371d
commit f591f8a974

View File

@ -387,7 +387,7 @@ router.put("/person/:tribe", checkHeaders, isAuthenticated, (req, res) => {
data: { alias: person.alias, profils: person.profils },
});
}
if (!req.body.addprofils) {
if (!req.body.addprofils && !req.body.removeprofils) {
if (!req.body.profils) {
req.body.profils = ["anonymous", "pagans", "persons"];
}