aboutsummaryrefslogtreecommitdiff
path: root/account
diff options
context:
space:
mode:
Diffstat (limited to 'account')
-rw-r--r--account/register.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/account/register.php b/account/register.php
index 53d7a2bbe..6da99fab2 100644
--- a/account/register.php
+++ b/account/register.php
@@ -14,6 +14,12 @@
*/
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+// check new registration allowed
+if (!$CONFIG->allow_registration) {
+ register_error(elgg_echo('registerdisabled'));
+ forward();
+}
+
$friend_guid = (int) get_input('friend_guid',0);
$invitecode = get_input('invitecode');