]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4789. Removing the container check for river items.
authorBrett Profitt <brett.profitt@gmail.com>
Wed, 19 Dec 2012 19:11:37 +0000 (14:11 -0500)
committerBrett Profitt <brett.profitt@gmail.com>
Wed, 19 Dec 2012 19:11:37 +0000 (14:11 -0500)
engine/lib/views.php

index c1b616cf1becac8db8926060f1740c7f55559182..8618c29978a5e5e408c228e595df8299e73c855d 100644 (file)
@@ -1235,13 +1235,16 @@ function elgg_view_river_item($item, array $vars = array()) {
        if (!$subject || !$object) {
                // subject is disabled or subject/object deleted
                return '';
-       } else {
-               // hide based on object's container
-               $visibility = ElggGroupItemVisibility::factory($object->container_guid);
-               if ($visibility->shouldHideItems) {
-                       return '';
-               }
        }
+       // Don't hide objects in closed groups that a user can see.
+       // see http://trac.elgg.org/ticket/4789
+//     else {
+//             // hide based on object's container
+//             $visibility = ElggGroupItemVisibility::factory($object->container_guid);
+//             if ($visibility->shouldHideItems) {
+//                     return '';
+//             }
+//     }
 
        $vars['item'] = $item;