mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-29 16:43:42 +00:00
Correct class casing (#29667)
This commit is contained in:
parent
fdd6248086
commit
4661352b51
|
@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
|
|||
\defined('_JEXEC') or die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
|
||||
|
@ -83,7 +83,7 @@ class HtmlView extends BaseHtmlView
|
|||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.admin'))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
/** @var SysinfoModel $model */
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
|
|||
\defined('_JEXEC') or die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\View\AbstractView;
|
||||
|
@ -41,7 +41,7 @@ class JsonView extends AbstractView
|
|||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.admin'))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
header('MIME-Version: 1.0');
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
|
|||
\defined('_JEXEC') or die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\View\AbstractView;
|
||||
|
@ -41,7 +41,7 @@ class TextView extends AbstractView
|
|||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.admin'))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Associations\Administrator\Dispatcher;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Dispatcher\ComponentDispatcher;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
|
||||
|
@ -30,7 +30,7 @@ class Dispatcher extends ComponentDispatcher
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception|Notallowed
|
||||
* @throws \Exception|NotAllowed
|
||||
*/
|
||||
protected function checkAccess()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Contenthistory\Administrator\Dispatcher;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Dispatcher\ComponentDispatcher;
|
||||
|
||||
/**
|
||||
|
@ -28,14 +28,14 @@ class Dispatcher extends ComponentDispatcher
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception|Notallowed
|
||||
* @throws \Exception|NotAllowed
|
||||
*/
|
||||
protected function checkAccess()
|
||||
{
|
||||
// Check the user has permission to access this component if in the backend
|
||||
if ($this->app->getIdentity()->guest)
|
||||
{
|
||||
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Cpanel\Administrator\Dispatcher;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Dispatcher\ComponentDispatcher;
|
||||
|
||||
/**
|
||||
|
@ -28,7 +28,7 @@ class Dispatcher extends ComponentDispatcher
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception|Notallowed
|
||||
* @throws \Exception|NotAllowed
|
||||
*/
|
||||
protected function checkAccess()
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ class Dispatcher extends ComponentDispatcher
|
|||
|
||||
if (!$parts || !$this->app->getIdentity()->authorise('core.manage', $parts[0]))
|
||||
{
|
||||
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\Controller;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Helper\ContentHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
|
@ -80,7 +80,7 @@ class DisplayController extends BaseController
|
|||
|
||||
if (!$this->canView($view))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
// Check for edit form.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
namespace Joomla\Component\Users\Administrator\Controller;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
|
||||
|
@ -56,7 +56,7 @@ class GroupsController extends AdminController
|
|||
{
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
parent::delete();
|
||||
|
@ -75,7 +75,7 @@ class GroupsController extends AdminController
|
|||
{
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
parent::publish();
|
||||
|
@ -94,7 +94,7 @@ class GroupsController extends AdminController
|
|||
{
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
return parent::reorder();
|
||||
|
@ -113,7 +113,7 @@ class GroupsController extends AdminController
|
|||
{
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
return parent::saveorder();
|
||||
|
@ -132,7 +132,7 @@ class GroupsController extends AdminController
|
|||
{
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
return parent::checkin();
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Joomla\Component\Users\Administrator\Controller;
|
|||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Access;
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
|
@ -115,7 +115,7 @@ class LevelController extends FormController
|
|||
|
||||
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
elseif (empty($ids))
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\View\Debuggroup;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Helper\ContentHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
@ -92,7 +92,7 @@ class HtmlView extends BaseHtmlView
|
|||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
$this->actions = $this->get('DebugActions');
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\View\Debuguser;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Access\Exception\Notallowed;
|
||||
use Joomla\CMS\Access\Exception\NotAllowed;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Helper\ContentHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
@ -92,7 +92,7 @@ class HtmlView extends BaseHtmlView
|
|||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
|
||||
{
|
||||
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
|
||||
$this->actions = $this->get('DebugActions');
|
||||
|
|
|
@ -28,7 +28,7 @@ class Dispatcher extends ComponentDispatcher
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Exception|Notallowed
|
||||
* @throws Exception|NotAllowed
|
||||
*/
|
||||
protected function checkAccess()
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ class Dispatcher extends ComponentDispatcher
|
|||
|
||||
if (!$this->app->getIdentity()->authorise('core.admin'))
|
||||
{
|
||||
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,14 +43,14 @@ class Dispatcher extends ComponentDispatcher
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Exception|Notallowed
|
||||
* @throws \Exception|NotAllowed
|
||||
*/
|
||||
protected function checkAccess()
|
||||
{
|
||||
// Check the user has permission to access this component if in the backend
|
||||
if ($this->app->getIdentity()->guest)
|
||||
{
|
||||
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user