Script module Edit button hidden for non-superusers #3

Open
opened 2026-04-05 16:21:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 4/3/2026

NetBox Edition

NetBox Community

NetBox Version

v4.5.6

Python Version

3.12

Steps to Reproduce

  1. Create a non-superuser account
  2. Grant the user change permission on extras > script module via an object permission
  3. Log in as that user and navigate to /extras/scripts/
  4. Observe that the Edit button next to each script module is not visible

Expected Behavior

The Edit button should appear for users with the change permission on ScriptModule, consistent with how every other model in NetBox works.

Observed Behavior

The Edit button never appears for non-superusers. The template extras/inc/script_list_content.html (line 14) checks perms.extras.edit_scriptmodule, but no such permission exists. The four permissions Django creates for ScriptModule are add, change, delete, and view.

The Delete button on line 19 correctly checks perms.extras.delete_scriptmodule.

*Originally created by @jnovinger on 4/3/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.5.6 ### Python Version 3.12 ### Steps to Reproduce 1. Create a non-superuser account 2. Grant the user `change` permission on `extras > script module` via an object permission 3. Log in as that user and navigate to `/extras/scripts/` 4. Observe that the Edit button next to each script module is not visible ### Expected Behavior The Edit button should appear for users with the `change` permission on `ScriptModule`, consistent with how every other model in NetBox works. ### Observed Behavior The Edit button never appears for non-superusers. The template `extras/inc/script_list_content.html` (line 14) checks `perms.extras.edit_scriptmodule`, but no such permission exists. The four permissions Django creates for `ScriptModule` are `add`, `change`, `delete`, and `view`. The Delete button on line 19 correctly checks `perms.extras.delete_scriptmodule`.
MrUnknownDE added the type: bugseverity: lowstatus: needs ownernetboxnetbox labels 2026-04-05 16:21:11 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#3