This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
/**
* Boot method, called right before the request route.
*
* @return array
*/
public function boot()
{
Event::listen('backend.menu.extendItems', function($navigationManager) {
if (/* check if user can't see Settings menu */) {
$navigationManager->removeMainMenuItem('October.System', 'system');
}
});
}
What if I wanted to hide just the Customize themes sub menu alone? Any clue how I can achieve that?
Last updated
Yes, I'd also like to know how to remove specific sub-menus in the settings.
As an example, sometimes there are Plugins that don't ship with their own permissions, so their settings appear when any backend user clicks on their avatar and chooses "My account"
joseph.d said:
Yes, I'd also like to know how to remove specific sub-menus in the settings.
As an example, sometimes there are Plugins that don't ship with their own permissions, so their settings appear when any backend user clicks on their avatar and chooses "My account"
I have the same problem, any suggestion ?
Last updated
This is good. Where can you get a list of Backend Nav items?
I took a guess and swapped out the 'Settings' for 'Cms' to hide the CMS nav item from a type of user.
Last updated
mikoop28841 Don't do that to hide the CMS from a user, just disable the CMS-applicable permissions on their account.
1-12 of 12