fix: mlogchange 改 mlogupdate

This commit is contained in:
caoqianming 2024-07-18 15:58:53 +08:00
parent 6fd2f2a009
commit 30be6dc291
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class MlogViewSet(CustomModelViewSet):
ins = sr.save()
return Response(MlogSerializer(ins).data)
@action(methods=['post'], detail=True, perms_map={'post': 'mlog.change'}, serializer_class=MlogChangeSerializer)
@action(methods=['post'], detail=True, perms_map={'post': 'mlog.update'}, serializer_class=MlogChangeSerializer)
def change(self, request, *args, **kwargs):
"""修改日志