]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed an invalid call to get_pageowner_guid() in can_edit_entity().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 15:00:06 +0000 (15:00 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 15:00:06 +0000 (15:00 +0000)
Removed the call to the validation function in useradd.

git-svn-id: http://code.elgg.org/elgg/trunk@7132 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/useradd.php
engine/lib/entities.php

index 8e287e1d8f81e853e0e72192c2b266967c82adc7..2b3dfe429c12e50f283764fdc6b40a048e182134 100644 (file)
@@ -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,
index 50e41ab2ce71f1cc36e54c8ff538c4873c4cf3ea..91593992229a47a6b8f1c9930ea5f94828e55b60 100644 (file)
@@ -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) {