CoreFiles by mySites.guru
fields.php30 lines, 948 bytes, from Joomla_3.8.4-Stable-Full_Package.zip
Raw History Compare with 3.8.3
md5
62165a4cb68edf5705f8db3e148457de
sha1
66e4070c7b3702529a9ecbf939a2ffed1c4d935b
sha256
d5a341c97d95104c3d9b130cf1cb5040c7b836f9700c10317a8f8733da94ed73
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_fields
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');

$app       = JFactory::getApplication();
$context   = $app->getUserStateFromRequest(
	'com_fields.groups.context',
	'context',
	$app->getUserStateFromRequest('com_fields.fields.context', 'context', 'com_content.article', 'CMD'),
	'CMD'
);

$parts = FieldsHelper::extract($context);

if (!$parts || !JFactory::getUser()->authorise('core.manage', $parts[0]))
{
	throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
}

$controller = JControllerLegacy::getInstance('Fields');
$controller->execute($app->input->get('task'));
$controller->redirect();

The same content is in 29 releases, Joomla 3.8.4-rc to 3.9.1. See them all, or every version of this file.