mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 10:26:27 +00:00
fix: 修复index api perm (#7761)
Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
@@ -214,7 +214,7 @@ class DatesLoginMetricMixin:
|
|||||||
class IndexApi(DatesLoginMetricMixin, APIView):
|
class IndexApi(DatesLoginMetricMixin, APIView):
|
||||||
http_method_names = ['get']
|
http_method_names = ['get']
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'GET': 'common.view_resourcestatistics'
|
'GET': 'rbac.view_resourcestatistics'
|
||||||
}
|
}
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user