- Issue created by @einarulfhednar
The Menu Per Role module currently lacks the necessary granularity to control who can assign roles for menu item visibility. The module provides a general permission (administer menu_per_role
), which allows access to the configuration of the module but does not distinguish between users who should only manage the settings and those who should have the ability to assign visibility roles to menu links.
Additionally, the naming and description of the administer menu_per_role
permission are misleading. This permission implies general module administration, but its real function is more limited. It needs to be renamed and clarified to reflect its actual usage.
administer menu_per_role
permission to a user role.administer menu_per_role
permission can both access the module settings and assign visibility roles to menu links, without separate permissions to control these actions.administer menu_per_role
to administer menu_per_role settings
.Proposed new title and description:
administer menu_per_role settings
assign menu role visibility
menu_per_role_form_menu_link_content_form_alter
) to check for the new assign menu role visibility
permission. Only users with this permission should be able to assign visibility roles to menu links, while the general module settings should remain restricted to users with administer menu_per_role settings.
With this proposed change, the module will provide better control over who can manage its settings and who can assign role-based visibility to menu items.
Active
1.8
Code