diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-21 08:20:41 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-21 08:20:41 -0700 |
commit | c5f89967f05fd42f606b51763df94d0860aba398 (patch) | |
tree | 181698fe135a2be9349e529a38c12808cd865180 /modules | |
parent | 55ac081a5d47c4446a7f800e0d9fde145dac1ea8 (diff) |
When activating the user module set all items to be owned by the administrator user.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/helpers/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php index 446b602d..ec4f56ae 100644 --- a/modules/user/helpers/user.php +++ b/modules/user/helpers/user.php @@ -80,7 +80,7 @@ class user_Core { $admin->save(); // Let the admin own everything - $db->update("items", array("owner_id" => $admin->id), array("owner_id" => "IS NULL")); + $db->query("update {items} set owner_id = {$admin->id}"); $root = ORM::factory("item", 1); access::allow($everybody, "view", $root); |