Monday 03 May 2010 11:05:02 am
I have a custom module where I define links to custom functionality. I have the module file set up where user roles match the functions list, and thus if someone doesn't have the correct permissions, they can't access the custom view. However, the only way to tell if you can access the link is by clicking on it. All functions that I have found to inform the system before accessing belong to ezcontentobjecttreenode (can_edit, can_hide, etc.). This doesn't help me since my custom view doesn't have a content object. Is there any way to see if a particular user has access to a custom module/function before they click on the link? thanks, erik
|