feat: base 去除MySchedule的权限控制

This commit is contained in:
caoqianming 2024-06-07 13:41:35 +08:00
parent 6eccfb67cb
commit 108e40bb3d
1 changed files with 2 additions and 2 deletions

View File

@ -686,8 +686,8 @@ class ApkViewSet(MyLoggingMixin, ListModelMixin, CreateModelMixin, GenericViewSe
class MyScheduleViewSet(ListModelMixin, CreateModelMixin, DestroyModelMixin, CustomGenericViewSet):
perms_map = {'get': '*', 'post': 'myschedule.create',
'delete': 'myschedule.delete'}
perms_map = {'get': '*', 'post': '*',
'delete': '*'}
serializer_class = MyScheduleSerializer
create_serializer_class = MyScheduleCreateSerializer
queryset = MySchedule.objects.all()