fix: 事件删除权限

This commit is contained in:
caoqianming 2023-05-25 17:12:22 +08:00
parent 515952ef8d
commit a1efcb46da
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class NotifySettingViewSet(CustomModelViewSet):
class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, CustomGenericViewSet):
perms_map = {'get': '*'}
perms_map = {'get': '*', 'delete': 'event.delete'}
queryset = Event.objects.all()
serializer_class = EventSerializer
retrieve_serializer_class = EventDetailSerializer