]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added access override to the forum upgrade
authorcash <cash.costello@gmail.com>
Fri, 23 Dec 2011 20:32:15 +0000 (15:32 -0500)
committercash <cash.costello@gmail.com>
Fri, 23 Dec 2011 20:32:15 +0000 (15:32 -0500)
mod/groups/upgrades/2011030101.php

index 666ae3736c30fc160d07c3754d70f08b81b39f89..9ed5b321bdb28272929b13a41c1c1d1174c7c0db 100644 (file)
@@ -25,7 +25,7 @@ foreach ($topics as $topic) {
 
 
 /**
- * Condense annotation into object
+ * Condense first annotation into object
  *
  * @param ElggObject $topic
  */
@@ -43,12 +43,14 @@ function groups_2011030101($topic) {
        return $annotation[0]->delete();
 }
 
+$previous_access = elgg_set_ignore_access(true);
 $options = array(
        'type' => 'object',
        'subtype' => 'groupforumtopic',
        'limit' => 0,
 );
 $batch = new ElggBatch('elgg_get_entities', $options, 'groups_2011030101', 100);
+elgg_set_ignore_access($previous_access);
 
 if ($batch->callbackResult) {
        error_log("Elgg Groups upgrade (2011030101) succeeded");