I am developing a cloud storage component for joomla, where users(resellers) can create subusers in their directory.
I have implemented everything needed for the component, and I have created 2 main views for it:
Cloud - where all the magic happens.
Settings - where a user(if he can_manage_subcontainers - setting stored in database) can create sub-users for his directory.
They both work fine and are displaying on the menu, BUT:
I want to always display the Cloud menu item.
Display the Settings menu item only if the user is logged in and has permission to create new sub-users, and I want to make this from my component - to be template/version independent.
I can do it easy if I add a script to hide/display 2nd menu item after the user logged in and have permision, but i don't want to that.
I checked for a menu hook for joomla but nothing.
I have latest version of joomla and the component that I have created it's integrated with joomla framework on the admin side (made using Joomla functions) and the frontend(site part of component) its made in php as MVC from scratch.
Sorry for my bad english, hope you understand what I want. Thanks!