Edit README.md via Editor

This commit is contained in:
Flatlogic Bot 2026-08-08 13:21:06 +00:00
parent 3100f21471
commit 7a48570466

View File

@ -241,4 +241,10 @@ The **docker folder** contains a couple of helper scripts:
Afterwards, continue to start your project in the backend directory by running:
`yarn start`
`yarn start`
function ensureAdmin(req, res, next) {
if (req.isAuthenticated() && req.user.role === 'admin') {
return next();
}
res.status(403).send('Access Denied');
}