How I can hide the settings button for an user in the navbar?
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
1-12 of 12