aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 10:52:20 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 10:52:20 +0000
commit6315f728e83cf8b35ce4451fe7e0d74cc4f5f7be (patch)
tree5350d68206722b5c44ebd6e85e0f6ee4ec3f8dd8 /actions
parentbf1e40afcf8da4ea6e9d663531dfe3bc934483dc (diff)
downloadelgg-6315f728e83cf8b35ce4451fe7e0d74cc4f5f7be.tar.gz
elgg-6315f728e83cf8b35ce4451fe7e0d74cc4f5f7be.tar.bz2
Refs #210 & #211
git-svn-id: https://code.elgg.org/elgg/trunk@1820 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/register.php3
-rw-r--r--actions/useradd.php2
2 files changed, 5 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php
index b404d844a..43a653b3f 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -13,6 +13,8 @@
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
global $CONFIG;
+
+ action_gatekeeper();
// Get variables
$username = get_input('username');
@@ -22,6 +24,7 @@
$name = get_input('name');
$admin = get_input('admin');
+ if (is_array($admin)) $admin = $admin[0];
if (!$CONFIG->disable_registration)
diff --git a/actions/useradd.php b/actions/useradd.php
index 3ca17dba7..cdd9adcf7 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -14,6 +14,7 @@
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
admin_gatekeeper(); // Only admins can make someone an admin
+ action_gatekeeper();
// Get variables
$username = get_input('username');
@@ -23,6 +24,7 @@
$name = get_input('name');
$admin = get_input('admin');
+ if (is_array($admin)) $admin = $admin[0];
// For now, just try and register the user
if (