Просмотр исходного кода

Fixes #5137: Correct permission for viewing report results is extras.view_reportresult

Jeremy Stretch 5 лет назад
Родитель
Сommit
c0b94e4e8e
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-2.9.md
  2. 1 1
      netbox/extras/views.py

+ 1 - 0
docs/release-notes/version-2.9.md

@@ -20,6 +20,7 @@
 * [#5118](https://github.com/netbox-community/netbox/issues/5118) - Specifying an empty list of tags should clear assigned tags (REST API)
 * [#5133](https://github.com/netbox-community/netbox/issues/5133) - Fix disassociation of an IP address from a VM interface
 * [#5136](https://github.com/netbox-community/netbox/issues/5136) - Fix exception when bulk editing interface 802.1Q mode
+* [#5137](https://github.com/netbox-community/netbox/issues/5137) - Correct permission for viewing report results is `extras.view_reportresult` (not `extras.view_report`)
 * [#5156](https://github.com/netbox-community/netbox/issues/5156) - Add missing "add" button to rack reservations list
 * [#5167](https://github.com/netbox-community/netbox/issues/5167) - Support filtering ObjectChanges by multiple users
 

+ 1 - 1
netbox/extras/views.py

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