Explorar el Código

Minor change to status response

pull/47/head^2
Djordje Djoric hace 4 años
padre
commit
cf4fb366f6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/middleware/auth.js

+ 1
- 1
src/middleware/auth.js Ver fichero

@@ -30,7 +30,7 @@ const authRole = async (req, res, next) => {
next()
}
else {
return res.status(401).send('Not authorized!')
return res.status(403).send('Access forbidden!')
}
} catch(e) {
next(e)

Cargando…
Cancelar
Guardar