Update logs
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m45s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s

This commit is contained in:
Omar Oughriss 2025-07-25 15:39:07 +02:00
parent 938c329c4d
commit b80f5ce517

View File

@ -15,11 +15,8 @@ export default async function folderHandler(req: Request, response: Response, ne
const stakeHolders = req.body.stakeholders as any[];
const description = req.body.description;
console.log("User req", JSON.stringify(req.body.user));
console.log("Office req", JSON.stringify(req.body.office));
if (office && office.uid != officeId) {
response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office");
response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office" + " Office req " + req.body.office + "\n" + " User req " + req.body.user);
return;
}