netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.8k stars 2.54k forks source link

System & background tasks menu items should display only for authenticated users #15977

Closed jeremystretch closed 4 months ago

jeremystretch commented 4 months ago

Deployment Type

NetBox Cloud

NetBox Version

v4.0.0

Python Version

3.11

Steps to Reproduce

  1. Ensure that EXEMPT_VIEW_PERMISSIONS is not set in the configuration and that LOGIN_REQUIRED is false.
  2. Open the NetBox UI as an unauthenticated user.

Expected Behavior

The navigation menu should be empty.

Observed Behavior

Links to the system and background task views are displayed under the "admin" heading in the menu. (Neither link works as both views require authentication.)

jadyndev commented 4 months ago

The above mentioned menu items are still shown to (authenticated) users without the required permissions to use these menus.