1
0
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:
Jeremy Stretch
2020-09-23 10:16:22 -04:00
parent e404f4efd2
commit c0b94e4e8e
2 changed files with 2 additions and 1 deletions

View File

@ -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')