diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-12-18 16:18:02 -0500 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-12-18 16:18:02 -0500 |
commit | a4d91991b7e172378370f995835fc329bad56b38 (patch) | |
tree | 48138082fa507ff74126032207123e4a83dee17b /engine/lib/views.php | |
parent | 2b08c9d03b803c8227a99a4c3fce3ecb84ed6fc4 (diff) | |
parent | d764446654f2c590391841ae25a9d22166b556ee (diff) | |
download | elgg-a4d91991b7e172378370f995835fc329bad56b38.tar.gz elgg-a4d91991b7e172378370f995835fc329bad56b38.tar.bz2 |
Merge branch 'pr-380' into 1.8
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r-- | engine/lib/views.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php index 69bceabf5..c1b616cf1 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1235,6 +1235,12 @@ 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 ''; + } } $vars['item'] = $item; |