mirror of https://github.com/jumpserver/jumpserver
fix: 修复工单日期不能为null settings 文件没有权限bug (#10479)
Co-authored-by: feng <1304903146@qq.com>pull/10480/head
parent
04e95d378c
commit
1fef273669
|
@ -2,6 +2,7 @@
|
|||
|
||||
path_perms_map = {
|
||||
'xpack': '*',
|
||||
'settings': '*',
|
||||
'replay': 'default',
|
||||
'applets': 'terminal.view_applet',
|
||||
'playbooks': 'ops.view_playbook'
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue