]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Remove unneeded code
authorSteve Clay <steve@mrclay.org>
Fri, 7 Sep 2012 06:22:20 +0000 (02:22 -0400)
committerSteve Clay <steve@mrclay.org>
Fri, 7 Sep 2012 06:22:20 +0000 (02:22 -0400)
engine/classes/ElggGroupItemVisibility.php

index 743c935dadaf639a1130178a97a485a4547acadb..2c7e2abb4d906ef5f854ef9764a32fb8f8f7ea43 100644 (file)
@@ -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];