mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
perf: report perm
This commit is contained in:
@@ -20,7 +20,7 @@ logger = get_logger(__file__)
|
||||
class UserChangeSecretApi(DateRangeMixin, APIView):
|
||||
http_method_names = ['get']
|
||||
rbac_perms = {
|
||||
'GET': 'audits.view_passwordchangelog',
|
||||
'GET': 'rbac.view_userchangepasswordreport',
|
||||
}
|
||||
permission_classes = [RBACPermission, IsValidLicense]
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ __all__ = ['UserReportApi']
|
||||
class UserReportApi(DateRangeMixin, APIView):
|
||||
http_method_names = ['get']
|
||||
rbac_perms = {
|
||||
'GET': 'users.view_user',
|
||||
'GET': 'rbac.view_userloginreport',
|
||||
}
|
||||
permission_classes = [RBACPermission, IsValidLicense]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user