3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @package Joomla.Administrator * @subpackage com_actionlogs * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Actionlogs\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_admin * * @since 4.2.7 */ class Dispatcher extends ComponentDispatcher { /** * com_admin does not require check permission, so we override checkAccess method and have it empty * * @return void * * @since 4.2.7 */ protected function checkAccess() { $user = $this->app->getIdentity(); // Access check if (!$user->authorise('core.admin', )) { throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403); } } }
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.72 ms | 401 KiB | 8 Q