Callback function upon rendering project menu
Added by Md Ashfaq Salehin about 9 years ago
Hi,
I need to create a plugin which will disable project menu items based on logged in user's member role in the project. I must not hack redmine core code. As example, if the current logged in user has Stakeholder role in the Enterprise project hide all other tabs from him except a custom tab (also redirect his project home page). For all other members every tab will be visible. I guess it can be done by chaining an extra function or piece of code when project menu will be rendered each time. Are there any hook with project_menu render process? If not then how to create patch for this. Please suggest me the best way to achieve this goal.