Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_akeebabackup/src/Mixin/ControllerProfileRestrictionTrait.php
Ðазад
<?php /** * @package akeebabackup * @copyright Copyright 2006-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\Component\AkeebaBackup\Administrator\Mixin; use Akeeba\Engine\Platform; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; /** * Implements an onBeforeExecute to restrict access to profiles by access level */ trait ControllerProfileRestrictionTrait { use ControllerProfileAccessTrait; protected function onBeforeExecute(&$task) { // Before doing anything, triple check that we truly have access to this profile $profileId = Platform::getInstance()->get_active_profile(); if (!$this->checkProfileAccess($profileId)) { Factory::getApplication()->getSession()->set('akeebabackup.profile', 1); $this->setRedirect('index.php?option=com_akeebabackup', Text::_('COM_AKEEBABACKUP_PROFILE_ERR_NOACCESS'), 'error'); $this->redirect(); } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка