fix: 修复工单日期不能为null settings 文件没有权限bug (#10479)

Co-authored-by: feng <1304903146@qq.com>
pull/10480/head
fit2bot 2023-05-17 17:29:34 +08:00 committed by GitHub
parent 04e95d378c
commit 1fef273669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
path_perms_map = {
'xpack': '*',
'settings': '*',
'replay': 'default',
'applets': 'terminal.view_applet',
'playbooks': 'ops.view_playbook'

View File

@ -40,6 +40,8 @@ class ApplyAssetSerializer(BaseApplyAssetSerializer, TicketApplySerializer):
ticket_extra_kwargs = TicketApplySerializer.Meta.extra_kwargs
extra_kwargs = {
'apply_accounts': {'required': False},
'apply_date_start': {'allow_null': False},
'apply_date_expired': {'allow_null': False},
}
extra_kwargs.update(ticket_extra_kwargs)