aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 22:27:01 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 22:27:01 +0000
commit96d830c50c7650229b4fad2bdcb3e863ec0bdc2a (patch)
treea07a441cdaeb8a2f1e613fd631fd7d096b42c519 /actions/register.php
parent2d508007f90be53f1895f284844ba1e1d52ac14c (diff)
downloadelgg-96d830c50c7650229b4fad2bdcb3e863ec0bdc2a.tar.gz
elgg-96d830c50c7650229b4fad2bdcb3e863ec0bdc2a.tar.bz2
Closes #227 and #243: Hopefully this has the fscking thing nailed to the wall.
Please report any problems, especially is they relate to access permissions (granted when you shouldn't or denied when you should) git-svn-id: https://code.elgg.org/elgg/trunk@1912 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index e54de28fe..84cca17ac 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -47,11 +47,12 @@
$new_user->admin = 'yes';
}
+ if (!$new_user->admin)
+ $new_user->disable('new_user'); // Now disable if not an admin
+
// Send email validation on register only
request_email_validation($guid);
- // Now disable
- //$new_user->disable('new_user');
system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename));