From: brettp Date: Sat, 30 Oct 2010 15:00:06 +0000 (+0000) Subject: Fixed an invalid call to get_pageowner_guid() in can_edit_entity(). X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5c4b91a531105ddbf873045b65009484b65384dc;p=lorea%2Felgg.git Fixed an invalid call to get_pageowner_guid() in can_edit_entity(). Removed the call to the validation function in useradd. git-svn-id: http://code.elgg.org/elgg/trunk@7132 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/actions/useradd.php b/actions/useradd.php index 8e287e1d8..2b3dfe429 100644 --- a/actions/useradd.php +++ b/actions/useradd.php @@ -33,7 +33,6 @@ try { $new_user->admin_created = TRUE; $new_user->created_by_guid = get_loggedin_userid(); - set_user_validation_status($new_user->getGUID(), TRUE, 'admin_created'); $subject = elgg_echo('useradd:subject'); $body = sprintf(elgg_echo('useradd:body'), $name, diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 50e41ab2c..915939922 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -455,7 +455,7 @@ function can_write_to_container($user_guid = 0, $container_guid = 0, $entity_typ $container_guid = (int)$container_guid; if (!$container_guid) { - $container_guid = get_page_owner_guid(); + $container_guid = elgg_get_page_owner_guid(); } if (!$container_guid) {