2026-05-28 12:54:43 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2026-06-21 11:38:41 -05:00
|
|
|
* @package MokoSuiteCross
|
|
|
|
|
* @subpackage com_mokosuitecross
|
2026-05-28 12:54:43 -05:00
|
|
|
* @author Moko Consulting <hello@mokoconsulting.tech>
|
|
|
|
|
* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved.
|
|
|
|
|
* @license GNU General Public License version 3 or later; see LICENSE
|
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
2026-06-21 11:38:41 -05:00
|
|
|
namespace Joomla\Component\MokoSuiteCross\Administrator\Controller;
|
2026-05-28 12:54:43 -05:00
|
|
|
|
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
|
|
2026-06-23 14:21:47 -05:00
|
|
|
use Joomla\CMS\Language\Text;
|
2026-05-28 12:54:43 -05:00
|
|
|
use Joomla\CMS\MVC\Controller\BaseController;
|
|
|
|
|
|
|
|
|
|
class DisplayController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The default view.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $default_view = 'dashboard';
|
2026-06-23 14:21:47 -05:00
|
|
|
|
|
|
|
|
public function display($cachable = false, $urlparams = [])
|
|
|
|
|
{
|
|
|
|
|
if (!$this->app->getIdentity()->authorise('core.manage', 'com_mokosuitecross')) {
|
|
|
|
|
throw new \Joomla\CMS\Access\Exception\NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return parent::display($cachable, $urlparams);
|
|
|
|
|
}
|
2026-05-28 12:54:43 -05:00
|
|
|
}
|