aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-17 22:27:25 -0400
committercash <cash.costello@gmail.com>2011-10-17 22:27:25 -0400
commit9a3ec606cfe2cbbe08949a56198bf9d4bb2e1e64 (patch)
tree2941171905854b0ecb6dbed9f4941b959c9266f9 /actions
parentaa3d287ec4d87ab83fabec8b8c460f3db695f1c8 (diff)
downloadelgg-9a3ec606cfe2cbbe08949a56198bf9d4bb2e1e64.tar.gz
elgg-9a3ec606cfe2cbbe08949a56198bf9d4bb2e1e64.tar.bz2
added another check to useradd action
Diffstat (limited to 'actions')
-rw-r--r--actions/useradd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/useradd.php b/actions/useradd.php
index be08b4be5..3df41af79 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -37,7 +37,7 @@ try {
if ($guid) {
$new_user = get_entity($guid);
- if (($guid) && ($admin)) {
+ if ($uew_user && $admin && elgg_is_admin_logged_in()) {
$new_user->makeAdmin();
}