test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • bobgen Friend
    #160557

    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;
    }

    Thanh Nguyen Viet Friend
    #378086

    Hello mate,

    Please try to change this code line:

    $allowGroups = array('Super Users', 'Administrator', 'Manager');

    to

    $allowGroups = array('Super User', 'Administrator', 'Manager');

    Remove ‘s’ character.

    Best regards,
    ThanhNV

    bobgen Friend
    #378103

    In user register and User Grups is name: ‘Super Users’.
    My problem I resolve with remove next code:

    if(!$finded)
    {
    $result[‘error’] = JText::_(‘NO_PERMISSION’);
    echo json_encode($result);
    exit;
    }

    Now all working very well.

    On that place can be only Super Users. Therefore I think on that place not problem with access rights.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  bobgen 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum