Hello,
Because I need to open a page with some additional parameters in the URL, I hid the table in the menu editor and added a menu entry manually specifying the path to the file with the parameters I need. That works fine.
The problem is, that not everybody has the right to see this table. But since the menu entry is made manually, the menu is always visible. So users click on the menu and then are told that they have no right to see that page. How can I hide this menu entry for the users who have no right to that page?
I am checking the $Item->Text in MenuItemAdding but need to check also if the currentuser has a right to that page...
How can I do that? I know of Security()->CanView but how to link this to the page that is to be opened by the menu entry?
Thank you very much for your help!
Nyukuri