aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-12-18 16:18:02 -0500
committerBrett Profitt <brett.profitt@gmail.com>2012-12-18 16:18:02 -0500
commita4d91991b7e172378370f995835fc329bad56b38 (patch)
tree48138082fa507ff74126032207123e4a83dee17b /engine/lib/views.php
parent2b08c9d03b803c8227a99a4c3fce3ecb84ed6fc4 (diff)
parentd764446654f2c590391841ae25a9d22166b556ee (diff)
downloadelgg-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.php6
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;