Edit button visible despite object permission constraint on Interface #231

Closed
opened 2026-04-05 16:23:15 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Etibru on 3/4/2026

NetBox Edition

NetBox Community

NetBox Version

v4.4.10-Docker-3.4.2

Python Version

3.12

Steps to Reproduce

  1. Create 2 tenants and 2 tenant groups (slug : bar and slug foo)
  2. Create a device with interfaces
  3. Create a permission on dcim.interface with a constraint such as :
{
 "device__tenant__group__slug": "foo"
}

Expected Behavior

If the Interface belongs to a Device whose Tenant Group slug is foo, the Edit button should be visible and functional.
If the Interface does not belong to a Device in tenant group foo, the Edit button should not be visible.

Observed Behavior

When the Interface belongs to a Device in tenant group foo, everything works correctly: the Edit button is visible and editing works.
However, when the Interface does not belong to a Device in tenant group foo, the Edit button is still visible.
If I click the button in this case, I get a "The requested page does not exist." (404) error.

*Originally created by @Etibru on 3/4/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.4.10-Docker-3.4.2 ### Python Version 3.12 ### Steps to Reproduce 1. Create 2 tenants and 2 tenant groups (slug : bar and slug foo) 2. Create a device with interfaces 3. Create a permission on dcim.interface with a constraint such as : ```json { "device__tenant__group__slug": "foo" } ``` ### Expected Behavior If the Interface belongs to a Device whose Tenant Group slug is `foo`, the Edit button should be visible and functional. If the Interface does not belong to a Device in tenant group `foo`, the Edit button should not be visible. ### Observed Behavior When the Interface belongs to a Device in tenant group `foo`, everything works correctly: the Edit button is visible and editing works. However, when the Interface does not belong to a Device in tenant group `foo`, the Edit button is still visible. If I click the button in this case, I get a "The requested page does not exist." (404) error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#231