CoreFiles by mySites.guru
controller.php43 lines, 1,135 bytes, from Joomla_3.9.0-alpha-Alpha-Full_Package.zip
Raw History Compare with 3.7.0-alpha2
md5
c4d1af3fc344c9fa6bea41612939f5c1
sha1
c6942aa07a4518c97f82fa27e7e0ee96799ddb65
sha256
30beee89c60527654b3b478a6e9f67c65bd4a7475929cbb0496a6afbfeeeccbc
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_privacy
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Privacy Controller
 *
 * @since  3.9.0
 */
class PrivacyController extends JControllerLegacy
{
	/**
	 * Method to display a view.
	 *
	 * @param   boolean  $cachable   If true, the view output will be cached
	 * @param   array    $urlparams  An array of safe URL parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return  $this
	 *
	 * @since   3.9.0
	 */
	public function display($cachable = false, $urlparams = array())
	{
		$view = $this->input->get('view', $this->default_view);

		// Submitting information requests through the frontend is restricted to authenticated users at this time
		if ($view === 'request' && JFactory::getUser()->guest)
		{
			$this->setRedirect(JRoute::_('index.php?option=com_users&view=login', false));

			return $this;
		}

		return parent::display($cachable, $urlparams);
	}
}

No other release has this exact content. See every version of this file.