When I tray to changing some parameters in JA Slideshow Module I get message NO_PERMISSION after pressing Save button.
I’m as Super User in administration panel of module manager Joomla 1.6. Installed quickstart.
What is wrong?
Thank you.
P.S.
Originaly text in “helper.php” file on location “modules/mod_jaslideshow/admin/” is:
jimport(‘joomla.filesystem.folder’);
jimport(‘joomla.filesystem.file’);
$user = JFactory::getUser();
$allowGroups = array(‘Super Users’, ‘Administrator’, ‘Manager’);
$finded = false;
foreach($user->groups as $group)
{
if(in_array($group,$allowGroups)){
$finded = true;
break;
}
}
if(!$finded)
{
$result[‘error’] = JText::_(‘NO_PERMISSION’);
echo json_encode($result);
exit;
}