-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v2.11.4
Python version
3.9
Steps to Reproduce
I believe that running reports using API is checking the wrong permission. It's checking if it has "extras.run_script" permission and I believe it would have to check it has "extras.run_report" permission.
netbox/netbox/extras/api/views.py
Line 242 in 110a6d1
| if not request.user.has_perm('extras.run_script'): |
Expected Behavior
if not request.user.has_perm('extras.run_report')
Observed Behavior
if not request.user.has_perm('extras.run_script')
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application