diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-24 10:59:15 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-24 10:59:15 +0000 |
commit | f64a66a816e3bedfb37b29ac3946e83f8c0aa087 (patch) | |
tree | 91533c51ebad053c3b37f7c2ccbdd2cfc8cdb930 /actions | |
parent | 9c4add6f882604d7953d5fe1a3dbb46dd5ccf2f2 (diff) | |
download | elgg-f64a66a816e3bedfb37b29ac3946e83f8c0aa087.tar.gz elgg-f64a66a816e3bedfb37b29ac3946e83f8c0aa087.tar.bz2 |
Closes #856: Admin created users are no longer created as being owned by the admin
git-svn-id: https://code.elgg.org/elgg/trunk@3233 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r-- | actions/useradd.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/useradd.php b/actions/useradd.php index e6e071f01..6d9ca1d2d 100644 --- a/actions/useradd.php +++ b/actions/useradd.php @@ -13,7 +13,7 @@ require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); - admin_gatekeeper(); // Only admins can make someone an admin + admin_gatekeeper(); // Only admins can add a user action_gatekeeper(); // Get variables
@@ -41,6 +41,7 @@ $new_user->admin = 'yes'; $new_user->admin_created = true; + $new_user->created_by_guid = get_loggedin_userid(); notify_user($new_user->guid, $CONFIG->site->guid, elgg_echo('useradd:subject'), sprintf(elgg_echo('useradd:body'), $name, $CONFIG->site->name, $CONFIG->site->url, $username, $password));
|