attach an event listener to navigation

the idea is to implement acl, this is just a part of the module.php, as
i develop i will be posting the complete modules.