Back to ComponentDispatcher class

Method checkAccess

protected void
checkAccess
()
Method to check component access permission
Returns
  • void
Since
  • 4.0.0

Method checkAccess - Source code

/**
 * Method to check component access permission
 *
 * @return  void
 *
 * @since   4.0.0
 */
protected function checkAccess()
{
    // Check the user has permission to access this component if in the backend
    if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.manage', $this->option)) {
        throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
    }
}