[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_joomlaupdate 6 * 7 * @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Joomlaupdate\Administrator\Dispatcher; 12 13 use Joomla\CMS\Access\Exception\NotAllowed; 14 use Joomla\CMS\Dispatcher\ComponentDispatcher; 15 16 // phpcs:disable PSR1.Files.SideEffects 17 \defined('_JEXEC') or die; 18 // phpcs:enable PSR1.Files.SideEffects 19 20 /** 21 * ComponentDispatcher class for com_admin 22 * 23 * @since 4.0.0 24 */ 25 class Dispatcher extends ComponentDispatcher 26 { 27 /** 28 * Joomla Update is checked for global core.admin rights - not the usual core.manage for the component 29 * 30 * @return void 31 */ 32 protected function checkAccess() 33 { 34 // Check the user has permission to access this component if in the backend 35 if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.admin')) { 36 throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403); 37 } 38 } 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |