diff options
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; | 
