Skip to content

Commit 5bf139e

Browse files
AndyRaeclaude
andauthored
Add ScanReportPermissionMixin to MappingRulesList and DownloadScanReportViewSet (#1286)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 27b9c1a commit 5bf139e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/api/api/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def delete(self, request, *args, **kwargs):
11821182
return self.destroy(request, *args, **kwargs)
11831183

11841184

1185-
class MappingRulesList(APIView):
1185+
class MappingRulesList(ScanReportPermissionMixin, APIView):
11861186
"""
11871187
API View to handle operations related to mapping rules.
11881188
@@ -1502,7 +1502,7 @@ class AnalyseRulesV2(ScanReportPermissionMixin, GenericAPIView, RetrieveModelMix
15021502
filterset_fields = ["id"]
15031503

15041504

1505-
class DownloadScanReportViewSet(viewsets.ViewSet):
1505+
class DownloadScanReportViewSet(ScanReportPermissionMixin, viewsets.ViewSet):
15061506
"""
15071507
A ViewSet for handling the download of scan reports.
15081508
Methods:

0 commit comments

Comments
 (0)