From: Steve Clay Date: Fri, 7 Sep 2012 06:22:20 +0000 (-0400) Subject: Remove unneeded code X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d764446654f2c590391841ae25a9d22166b556ee;p=lorea%2Felgg.git Remove unneeded code --- diff --git a/engine/classes/ElggGroupItemVisibility.php b/engine/classes/ElggGroupItemVisibility.php index 743c935da..2c7e2abb4 100644 --- a/engine/classes/ElggGroupItemVisibility.php +++ b/engine/classes/ElggGroupItemVisibility.php @@ -26,11 +26,6 @@ class ElggGroupItemVisibility { */ public $reasonHidden = ''; - /** - * @var bool - */ - public $requireLogin = false; - /** * Determine visibility of items within a container for the current user * @@ -91,11 +86,6 @@ class ElggGroupItemVisibility { $ret->reasonHidden = self::REASON_NOACCESS; } } - - if ($ret->shouldHideItems && !$user) { - $ret->requireLogin = true; - } - $cache[$cache_key] = $ret; } return $cache[$cache_key];