mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: missing early return
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user