diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-12-19 14:11:37 -0500 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-12-19 14:11:37 -0500 |
commit | 68441b33797e681a03fc61d217e1d110baa9e482 (patch) | |
tree | b68d7df3e8e65baf410d18632790bb3973e2f810 /engine | |
parent | a4d91991b7e172378370f995835fc329bad56b38 (diff) | |
download | elgg-68441b33797e681a03fc61d217e1d110baa9e482.tar.gz elgg-68441b33797e681a03fc61d217e1d110baa9e482.tar.bz2 |
Refs #4789. Removing the container check for river items.
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/views.php | 15 |
1 files changed, 9 insertions, 6 deletions
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; |