From 7682706a46a20e3e58a9afd8ba208d5b0c040499 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 7 May 2010 21:49:19 +0000 Subject: Adding an option to restrict new user registration in advanced site settings. This is the first step in fully merging "Walled Garden" plugin into core Elgg engine. git-svn-id: http://code.elgg.org/elgg/trunk@5981 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/site/update_advanced.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actions/admin') diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php index c9b78c261..7e6bd0cc6 100644 --- a/actions/admin/site/update_advanced.php +++ b/actions/admin/site/update_advanced.php @@ -49,6 +49,13 @@ if (datalist_get('default_site')) { } else { unset_config('debug', $site->getGUID()); } + + // allow new user registration? + if (get_input('allow_registration', FALSE)) { + set_config('allow_registration', TRUE, $site->getGUID()); + } else { + set_config('allow_registration', FALSE, $site->getGUID()); + } $https_login = get_input('https_login'); if ($https_login) { -- cgit v1.2.3