Open alehaa opened 3 months ago
I volunteer to work on a PR for this feature.
Any news on this one? I hesitate to upgrade from 3.7.8 because I do not want to confuse our users. Stating that I have to add that this behavior was introduced in the 4.x branch.
This looks like it can be handled by assigning each MenuItem the attribute staff_only=True
Thank you, but no. I don't want to mess with the code on our installation. I have avoided running NetBox from a dedicated code base (aka our own) so far and would like to stick to that. So I'm still hoping for the old behavior to be restored :sunglasses:
@arthanson I will volunterr unless @alehaa is still interested.
@wz4 you can take this one but I still volunteer as backup.
Please keep in mind there are plans to remove the staff field in #16137, checking the admin state would be preferable.
NetBox version
v4.0.8
Feature type
Change to existing functionality
Proposed functionality
If a user is not an administrator, the
Admin > System
section of the menu should not be visible. If the user also lacks permissions for any menu item ofAdmin > Authentication
, theAdmin
section should be hidden completely.Use case
A user with no permissions can't see API Tokens, System and Background Tasks. However, these menu items are shown. Hiding them makes the UI a bit cleaner.
Database changes
None
External dependencies
None