401 -> 403

This commit is contained in:
Alex Holliday
2024-12-16 18:20:41 -08:00
parent d4a6df5df3
commit df11a457f1
+1 -1
View File
@@ -284,7 +284,7 @@ const editUser = async (req, res, next) => {
// If not a match, throw a 401
if (!match) {
const error = new Error(errorMessages.AUTH_INCORRECT_PASSWORD);
error.status = 401;
error.status = 403;
next(error);
return;
}