From 3c3a797be5be057e0080724fba9782db39ba14eb Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 25 Jan 2024 15:46:35 +0100 Subject: [PATCH] Use invitation and add known user even when registration is open --- lib/commands/block.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/commands/block.js b/lib/commands/block.js index 123a0d6a7..39c003e3c 100644 --- a/lib/commands/block.js +++ b/lib/commands/block.js @@ -117,7 +117,6 @@ Block.writeLoginBlock = function (Env, msg, _cb) { var validatedBlock, path; var validatedInvite; nThen(function (w) { - if (!Env.restrictRegistration) { return; } if (!inviteToken) { return; } Invitation.check(Env, inviteToken, w((err, state) => { if (err || !state) { return; } // Invalid token, don't abort, check registration proof