fixed gh-325 that caused a security token validation error.

This commit is contained in:
2018-07-23 17:07:13 +02:00
parent 812857da81
commit a6013c4b22
3 changed files with 2 additions and 4 deletions

View File

@ -97,8 +97,6 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
public function smartImport()
{
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))