perf: report perm

This commit is contained in:
feng
2025-08-22 17:47:31 +08:00
committed by ZhaoJiSen
parent 47413966c9
commit 1debaa5547
10 changed files with 33 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ __all__ = ['AssetStatisticApi']
class AssetStatisticApi(DateRangeMixin, APIView):
http_method_names = ['get']
rbac_perms = {
'GET': 'assets.view_asset',
'GET': 'rbac.view_assetstatisticsreport',
}
permission_classes = [RBACPermission, IsValidLicense]