From f64a66a816e3bedfb37b29ac3946e83f8c0aa087 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 24 Apr 2009 10:59:15 +0000 Subject: 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 --- engine/lib/users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib/users.php') 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 -- cgit v1.2.3