From f591f8a974d0fd5939a298a54f51f52bbfbbc021 Mon Sep 17 00:00:00 2001 From: philc Date: Mon, 10 Jun 2024 16:56:35 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20addprofils=20et=20remove?= =?UTF-8?q?profis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/pagans.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/pagans.js b/routes/pagans.js index 2b17312..a9e3e95 100755 --- a/routes/pagans.js +++ b/routes/pagans.js @@ -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"]; }