Fixed the import JCB packages link on dashboard, add frame to layout and template snippet display in related views

This commit is contained in:
2018-04-03 08:24:24 +02:00
parent 5d3a68b448
commit 6a77d71095
10 changed files with 22 additions and 12 deletions

View File

@ -111,8 +111,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'))