mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复应用开启公开访问链失败的缺陷
--bug=1047920 --user=王孝刚 【应用】应用概览页面-关闭/开启公开访问链接 提示异常 https://www.tapd.cn/57709429/s/1596807
This commit is contained in:
parent
86c5d65ca1
commit
3eb944300d
|
|
@ -322,7 +322,8 @@ class ApplicationSerializer(serializers.Serializer):
|
|||
if application_setting_model is not None and X_PACK_LICENSE_IS_VALID:
|
||||
application_setting, _ = application_setting_model.objects.get_or_create(
|
||||
application_id=self.data.get('application_id'))
|
||||
if application_setting is not None:
|
||||
if application_setting is not None and instance.get('authentication') is not None and instance.get(
|
||||
'authentication_value') is not None:
|
||||
application_setting.authentication = instance.get('authentication')
|
||||
application_setting.authentication_value = {
|
||||
"type": "password",
|
||||
|
|
|
|||
Loading…
Reference in New Issue