GeForce Manager
PHP Advanced
C:
/
xampp
/
htdocs
/
Ajaji
/
administrator
/
components
/
com_joomlaupdate
/
src
/
Dispatcher
/
Name
Size
Perms
Actions
📄
Dispatcher.php
1132 B
0666
Edit
Perms
Delete
Editing:
Dispatcher.php
<?php /** * @package Joomla.Administrator * @subpackage com_joomlaupdate * * @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Joomlaupdate\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_joomlaupdate * * @since 4.0.0 */ class Dispatcher extends ComponentDispatcher { /** * Joomla Update is checked for global core.admin rights - not the usual core.manage for the component * * @return void */ protected function checkAccess() { // Check the user has permission to access this component if in the backend if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.admin')) { throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403); } } }
Cancel