CoreFiles by mySites.guru
Dispatcher.php43 lines, 1,035 bytes, from Joomla_5.2.6-Stable-Full_Package.zip
Raw History Compare with 5.2.5
md5
7e00d8fb8d798d1ebb0242d2f2ac2518
sha1
bb5a4b031de41e79086888be4cceee31b3608a44
sha256
7ffb9561ee6293ffe8ee8684226f302b3348e7c19892a6a6e83bfb854a4040be
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_guidedtours
 *
 * @copyright   (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Guidedtours\Administrator\Dispatcher;

use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Dispatcher\ComponentDispatcher;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * ComponentDispatcher class for com_guidedtours
 *
 * @since  5.2.0
 */
class Dispatcher extends ComponentDispatcher
{
    /**
     * Method to check component access permission
     *
     * @return  void
     *
     * @throws  \Exception|NotAllowed
     */
    protected function checkAccess()
    {
        $command = $this->input->getCmd('task', 'display');
        if ($this->app->isClient('administrator') && $command == 'ajax.fetchUserState') {
            return;
        }

        parent::checkAccess();
    }
}

The same content is in 114 releases, Joomla 5.2.0-rc1 to 6.3.0-alpha1. See them all, or every version of this file.