-
AuthorPosts
-
Meng Fei Koo Friend
Meng Fei Koo
- Join date:
- September 2014
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
July 7, 2008 at 2:12 am #130524Dear 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
KMFMeng Fei Koo FriendMeng Fei Koo
- Join date:
- September 2014
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
July 8, 2008 at 2:10 am #258474Nobody knows about this issue? Any helps from Joomlart developer?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 8, 2008 at 12:41 pm #258549Hi
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 joomlaMeng Fei Koo FriendMeng Fei Koo
- Join date:
- September 2014
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
July 9, 2008 at 2:25 am #258678Hi, 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 11, 2008 at 9:38 am #259194Hi
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 FriendMeng Fei Koo
- Join date:
- September 2014
- Posts:
- 76
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 11
- Thanked:
- 2 times in 1 posts
July 14, 2008 at 7:52 am #259613Hi nguoiabcd,
Thanks for reply. I have no time to edit this recently. Will post the result after I changed the code.
😀
-
AuthorPosts
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