Hide device detail panels if missing model permissions #11207

Closed
opened 2025-12-29 21:41:57 +01:00 by adam · 1 comment
Owner

Originally created by @alehaa on GitHub (May 21, 2025).

NetBox version

v4.3.1

Feature type

Change to existing functionality

Proposed functionality

The device details view has panels for various linked models, e.g.

  • Virtual Device Contexts
  • Services
  • Images
  • Rack (elevations)

I propose hiding these, if the user has no permissions to view the model.

Use case

For rack elevations, the user sees the labels "Front" and "Rear," but the elevations are missing. Hiding the elevation completely might prevent confusion, such as thinking that the image isn't loading.

This would also make the device details view cleaner for users with limited permissions.

Database changes

None

External dependencies

None

Originally created by @alehaa on GitHub (May 21, 2025). ### NetBox version v4.3.1 ### Feature type Change to existing functionality ### Proposed functionality The device details view has panels for various linked models, e.g. * Virtual Device Contexts * Services * Images * Rack (elevations) I propose hiding these, if the user has no permissions to view the model. ### Use case For rack elevations, the user sees the labels "Front" and "Rear," but the elevations are missing. Hiding the elevation completely might prevent confusion, such as thinking that the image isn't loading. This would also make the device details view cleaner for users with limited permissions. ### Database changes None ### External dependencies None
adam added the type: feature label 2025-12-29 21:41:57 +01:00
adam closed this issue 2025-12-29 21:41:57 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 22, 2025):

Hiding the elevation completely might prevent confusion, such as thinking that the image isn't loading.

On the flip side, hiding the elevation is likely to result in user confusion, leaving users to wonder why the rack elevations are not displaying. It's more complex than it might appear as well: What if the user has permission to view only half of the devices in the rack?

Unfortunately there's no perfect solution to such a challenge, but in general it's preferable to present the data available rather that withholding it.

@jeremystretch commented on GitHub (May 22, 2025): > Hiding the elevation completely might prevent confusion, such as thinking that the image isn't loading. On the flip side, hiding the elevation is likely to result in user confusion, leaving users to wonder why the rack elevations are not displaying. It's more complex than it might appear as well: What if the user has permission to view only half of the devices in the rack? Unfortunately there's no perfect solution to such a challenge, but in general it's preferable to present the data available rather that withholding it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11207