Skip to content

Commit

Permalink
fix: ADMIN_ROLE
Browse files Browse the repository at this point in the history
  • Loading branch information
rjvelazco committed Nov 20, 2020
1 parent 3c5d677 commit 7c48ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/middlewares/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let verificaToken = (req, res, next) => {
let verificaAdmin_Role = (req, res, next) => {
let usuario = req.usuario;

if (usuario.role !== 'ADMIND_ROLE') {
if (usuario.role !== 'ADMIN_ROLE') {
return res.status(400).json({
ok: false,
err: {
Expand Down

0 comments on commit 7c48ad2

Please sign in to comment.