Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Meng Fei Koo Friend
    #130524

    Dear All,

    I have two item in mainmenu with permission setting using JACL. Named it Menu_MemberA and Menu_MemberB, different member type can see and view different menu and content inside.

    Now I found that the top menu which was generated by $jamenu->genMenu alway shows both “protected menu” as long as user logged. They can see the menu but no access to page which they have no right. (So i assume JACL is working fine here).

    However, the mainmenu module on the left are doing fine a expected.

    So I assume this is a bugs on JAMENU? Sorry for poor English…

    Thanks
    KMF

    Meng Fei Koo Friend
    #258474

    Nobody knows about this issue? Any helps from Joomlart developer?

    Sherlock Friend
    #258549

    Hi
    Can you say your Joomla version, and your URL ?
    Maybe that isn’t bug of Joomlart menu, because JA menu get menu like as original menu of joomla

    Meng Fei Koo Friend
    #258678

    Hi, thanks for reply.

    Joomla 1.0.15 I am using.

    URL : http://www.mystock88.com/

    For you to test, I created two user type (Demo1 and Demo2). Each user can access their own membership content called Menu “Demo1” and “Demo2”

    username :XXXXXX
    password :XXXXXX
    (Can view the content of Demo1 under submenu of Home (first link in case you dont understand chinese character)

    username: XXXXXX
    password: XXXXXX
    (Can view the content of Demo2 under submenu of Home (first link in case you dont understand chinese character)

    So, if you notice. Top menu always show both menu of Demo1 and Demo2. But mainmenu on the left only shows what they can view.

    I will remove this two account and setting in next 24hrs for security reason. :p
    Thanks.

    KMF

    Sherlock Friend
    #259194

    Hi
    that bug because Jcacl component change something in code.
    You can edit Base.class.php(templatesja_helioja_menus folder)
    Search those lines:

    if ($mosConfig_shownoauth) {
    $sql = "SELECT m.* FROM #__menu AS m"
    . "nWHERE menutype='". $this->getParam( 'menutype' ) ."' AND published='1'"
    . "nORDER BY parent,ordering";
    } else {
    $sql = "SELECT m.* FROM #__menu AS m"
    . "nWHERE menutype='". $this->getParam( 'menutype' ) ."' AND published='1' AND access <= '$my->gid'"
    . "nORDER BY parent,ordering";
    }

    Change to

    if (!$mosConfig_shownoauth) {
    $sql = "SELECT m.* FROM #__menu AS m"
    . "nWHERE menutype='". $this->getParam( 'menutype' ) ."' AND published='1'";
    $sql.= "n AND access " . ( isset($my->jaclplus) ? "IN ( $my->jaclplus )" : "<= " . (int) $my->gid );
    $sql.= "nORDER BY parent,ordering";
    } else {
    $sql = "SELECT m.* FROM #__menu AS m"
    . "nWHERE menutype='". $this->getParam( 'menutype' ) ."' AND published='1' "
    . "nORDER BY parent,ordering";
    }

    Meng Fei Koo Friend
    #259613

    Hi nguoiabcd,

    Thanks for reply. I have no time to edit this recently. Will post the result after I changed the code.

    😀

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

This topic contains 6 replies, has 2 voices, and was last updated by  Meng Fei Koo 16 years, 4 months ago.

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