feat: enstat update权限

This commit is contained in:
caoqianming 2024-12-13 18:09:29 +08:00
parent 005b5c1057
commit 5572b4cb0f
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class EnStatViewSet(CustomListModelMixin, BulkUpdateModelMixin, CustomGenericVi
能耗统计记录
"""
perms_map = {"get": "*"}
perms_map = {"get": "*", "put": "enstat.update"}
queryset = EnStat.objects.all()
serializer_class = EnStatSerializer
select_related_fields = ["mgroup", "team", "mgroup__belong_dept"]