public function checkExcludeUserGroups($excludeGroups = array()) { /* if (XenForo_Application::isRegistered('addOns')) { $addOns = XenForo_Application::get('addOns'); if (!empty($addOns['Brivium_ModernStatistics']) && $addOns['Brivium_ModernStatistics'] < 1080000) { //throw new XenForo_Exception(new XenForo_Phrase('board_currently_being_upgraded')); return true; } } */ if ($excludeGroups) { if (self::$_userGroups === null) { $visitor = XenForo_Visitor::getInstance(); $userGroups = $visitor['user_group_id']; if (!empty($visitor['secondary_group_ids'])) { $userGroups .= ',' . $visitor['secondary_group_ids']; } $userGroups = explode(',', $userGroups); self::$_userGroups = $userGroups; } if (!is_array(self::$_userGroups)) { self::$_userGroups = array(); } if (!is_array($excludeGroups)) { $excludeGroups = array(); } if (array_intersect(self::$_userGroups, $excludeGroups)) { return false; } } return true; }
protected function _getViewAbleNode() { if (!isset(self::$_viewAbleNode)) { self::$_viewAbleNode = $this->_getNodeModel()->getViewableNodeList(); } return self::$_viewAbleNode; }