Way to hide menu item but keep it accessible for user role

Is there a way to hide menu item? If I set deny on screen in premissions, user is not able to select this item as reference in other entity.

I want to let some users or admin manage reference entities, but rest of users should not see them in menu, but only in views and edit pages of entities that using it.

For example I have list of categories, and book entity that is using it with relationship one to one. If I disable categories screen for some role, this role is not allowed to select category in book entity edit screen.

Hi,

The roles and permissions mechanism of CUBA security subsystem is exactly what you need. The access to menu items can be set up on the Screens tab of the Role editor.

You can get a brief overview of user roles in our tutorials for end-users and system administrators.