fix: missing early return

This commit is contained in:
Julian Lam
2022-02-03 15:49:35 -05:00
parent 936562c3cb
commit ad63517511

View File

@@ -272,7 +272,7 @@ Users.confirmEmail = async (req, res) => {
]);
if (!canManage) {
helpers.notAllowed(req, res);
return helpers.notAllowed(req, res);
}
if (pending) { // has active confirmation request