Interface table row dropdown not rendered in Device Interfaces tab for users with correct permissions #6906

Closed
opened 2025-12-29 19:46:32 +01:00 by adam · 2 comments
Owner

Originally created by @atownson on GitHub (Aug 30, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.3.1

Python version

3.8

Steps to Reproduce

  1. Create a user with permissions to view, add, and change dcim.device and dcim.interface.
  2. Log in as the user created.
  3. Select a Device (one that contains interfaces) and navigate to its details page and select the Interfaces tab.

Expected Behavior

The blue dropdown should be rendered for each row.

image

Observed Behavior

The blue dropdown is not rendered.

image

Originally created by @atownson on GitHub (Aug 30, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.3.1 ### Python version 3.8 ### Steps to Reproduce 1. Create a user with permissions to view, add, and change dcim.device and dcim.interface. 2. Log in as the user created. 3. Select a Device (one that contains interfaces) and navigate to its details page and select the Interfaces tab. ### Expected Behavior The blue dropdown should be rendered for each row. ![image](https://user-images.githubusercontent.com/52260120/187336685-699e77c5-74d2-4b38-8e8f-3b173ea87bcc.png) ### Observed Behavior The blue dropdown is not rendered. ![image](https://user-images.githubusercontent.com/52260120/187336436-a37e00f6-c988-4ed9-b4dd-ddec20dd85e1.png)
adam added the type: bugstatus: accepted labels 2025-12-29 19:46:32 +01:00
adam closed this issue 2025-12-29 19:46:33 +01:00
Author
Owner

@atownson commented on GitHub (Aug 30, 2022):

There is a typo in netbox/dcim/tables/template_code.py on line 229 causing this issue:

...
INTERFACE_BUTTONS = """
{% if perms.dcim.edit_interface %}
  <span class="dropdown">
...

Should be:

...
INTERFACE_BUTTONS = """
{% if perms.dcim.change_interface %}
  <span class="dropdown">
...

I can submit a PR for this if accepted.

@atownson commented on GitHub (Aug 30, 2022): There is a typo in [netbox/dcim/tables/template_code.py](https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/tables/template_code.pyl) on line 229 causing this issue: ``` ... INTERFACE_BUTTONS = """ {% if perms.dcim.edit_interface %} <span class="dropdown"> ... ``` Should be: ``` ... INTERFACE_BUTTONS = """ {% if perms.dcim.change_interface %} <span class="dropdown"> ... ``` I can submit a PR for this if accepted.
Author
Owner

@jeremystretch commented on GitHub (Aug 30, 2022):

Thanks @atownson, I'll fix it. How else will I learn?

@jeremystretch commented on GitHub (Aug 30, 2022): Thanks @atownson, I'll fix it. How else will I learn?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6906