fix: 修复index api perm (#7761)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7763/head
fit2bot 2022-03-08 10:43:01 +08:00 committed by GitHub
parent 89de111acc
commit 761265dec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class DatesLoginMetricMixin:
class IndexApi(DatesLoginMetricMixin, APIView):
http_method_names = ['get']
rbac_perms = {
'GET': 'common.view_resourcestatistics'
'GET': 'rbac.view_resourcestatistics'
}
def get(self, request, *args, **kwargs):