Skip to main content
Topic: [SOLVED] project menu and user roles problem (Read 751 times) previous topic - next topic

[SOLVED] project menu and user roles problem

NEVER MYND, I solved this setting the link of the MYMENU1 and MYMENU2 items menu to the first submenu they contain.

===========
Hello all,
I have a project menu that should display contetnt based on the user role.
This works as expected when the project menu doesn't contain sub items in submenus.
Example:
Code: [Select]
mymenuotem1.1 (administrator)
mymenuotem1.2 (administrator)
mymenuotem2.1 (user - administrator)
mymenuotem2.2 (user - administrator)

This way, administrator menu items are hidden when the user logins, while the administrator can see them all.
this is Ok.

But then I would like to organize better my menu and create something similar to this:
Code: [Select]
MYMENU1
- mymenuotem1.1 (administrator)
- mymenuotem1.2 (administrator)
MYMENU2
mymenuotem2.1 (user - administrator)
mymenuotem2.2 (user - administrator)
Since the MYMENU1 and MYMENU2 are not part of the role permission, the MYMENU1 displays even when the user logins. It doesn't contain any sub-menu, anyway.

My question is: is there a way to hide MYMENU1 when the user logins?

Thanks in advance.
tony