| Current Path : /home/zieirix/www/administrator/components/com_jce/controller/ |
| Current File : /home/zieirix/www/administrator/components/com_jce/controller/config.php |
<?php
/**
* @package JCE
* @subpackage Admin
*
* @copyright Copyright (C) 2005 - 2023 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Controller\FormController;
class JceControllerConfig extends FormController
{
public function __construct($config = array())
{
parent::__construct($config);
// return to control panel on cancel/close
$this->view_list = 'cpanel';
// only for Joomla 3.x
if (version_compare(JVERSION, '4', 'lt')) {
require_once JPATH_COMPONENT_ADMINISTRATOR . '/includes/classmap.php';
}
}
protected function allowEdit($data = array(), $key = 'id')
{
return Factory::getUser()->authorise('jce.config', 'com_jce');
}
}