mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-26 06:52:53 +00:00
fix: 修复工单日期不能为null settings 文件没有权限bug (#10479)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
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
Block a user