Update logs
All checks were successful
All checks were successful
This commit is contained in:
parent
938c329c4d
commit
b80f5ce517
@ -15,11 +15,8 @@ export default async function folderHandler(req: Request, response: Response, ne
|
|||||||
const stakeHolders = req.body.stakeholders as any[];
|
const stakeHolders = req.body.stakeholders as any[];
|
||||||
const description = req.body.description;
|
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) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user