Edit README.md via Editor
This commit is contained in:
parent
3100f21471
commit
7a48570466
@ -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');
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user