mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #5137: Correct permission for viewing report results is extras.view_reportresult
This commit is contained in:
@ -401,7 +401,7 @@ class ReportResultView(ContentTypePermissionRequiredMixin, View):
|
||||
Display a JobResult pertaining to the execution of a Report.
|
||||
"""
|
||||
def get_required_permission(self):
|
||||
return 'extras.view_report'
|
||||
return 'extras.view_reportresult'
|
||||
|
||||
def get(self, request, job_result_pk):
|
||||
report_content_type = ContentType.objects.get(app_label='extras', model='report')
|
||||
|
Reference in New Issue
Block a user