Skip to content

Report run API using wrong permission #6502

@fpessoanunes

Description

@fpessoanunes

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.

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 implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions