forked from joomla/Component-Builder
fixed gh-325 that caused a security token validation error.
This commit is contained in:
parent
812857da81
commit
a6013c4b22
@ -129,7 +129,7 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Version*: 2.8.4
|
+ *Version*: 2.8.4
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **186365**
|
+ *Line count*: **186363**
|
||||||
+ *Field count*: **1059**
|
+ *Field count*: **1059**
|
||||||
+ *File count*: **1239**
|
+ *File count*: **1239**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **197**
|
||||||
|
@ -129,7 +129,7 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Version*: 2.8.4
|
+ *Version*: 2.8.4
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **186365**
|
+ *Line count*: **186363**
|
||||||
+ *Field count*: **1059**
|
+ *Field count*: **1059**
|
||||||
+ *File count*: **1239**
|
+ *File count*: **1239**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **197**
|
||||||
|
@ -97,8 +97,6 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
|
|
||||||
public function smartImport()
|
public function smartImport()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
|
||||||
// check if import is allowed for this user.
|
// check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||||
|
Loading…
Reference in New Issue
Block a user