From 68441b33797e681a03fc61d217e1d110baa9e482 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 19 Dec 2012 14:11:37 -0500 Subject: Refs #4789. Removing the container check for river items. --- engine/lib/views.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/views.php b/engine/lib/views.php index c1b616cf1..8618c2997 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -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; -- cgit v1.2.3