Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/utils/verifyToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const verifyToken = (req, res, next) => {
};

export const verifyUser = (req, res, next) => {
verifyToken(req, res, next, () => {
verifyToken(req, res, () => {
if (req.user.id === req.params.id || req.user.isAdmin) {
next();
} else {
Expand Down