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 /engine/lib | |
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 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index cddc89b3a..04e95c964 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1249,7 +1249,9 @@ $user->name = $name;
$user->access_id = ACCESS_PUBLIC;
$user->salt = generate_random_cleartext_password(); // Note salt generated before password!
- $user->password = generate_user_password($user, $password);
+ $user->password = generate_user_password($user, $password); + $user->owner_guid = 0; // Users aren't owned by anyone, even if they are admin created. + $user->container_guid = 0; // Users aren't contained by anyone, even if they are admin created.
$user->save();
// If $friend_guid has been set, make mutual friends
|