-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Admin menu section for non-admins #17010
Comments
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 netbox/netbox/netbox/navigation/menu.py Lines 381 to 393 in fe0ae39
|
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 😎 |
@arthanson I will volunterr unless @alehaa is still interested. |
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
The text was updated successfully, but these errors were encountered: