Skip to content

Commit 59ee0c1

Browse files
authored
fix: During the conversation, there is sensitive data in the application profile obtained by the application (#3018)
1 parent b37cc3b commit 59ee0c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/application/serializers/application_serializers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,8 @@ def profile(self, with_valid=True):
10121012
'stt_autosend': application.stt_autosend,
10131013
'file_upload_enable': application.file_upload_enable,
10141014
'file_upload_setting': application.file_upload_setting,
1015-
'work_flow': application.work_flow,
1015+
'work_flow': {'nodes': [node for node in application.work_flow.get('nodes') if
1016+
node.get('id') == 'base-node']},
10161017
'show_source': application_access_token.show_source,
10171018
'language': application_access_token.language,
10181019
**application_setting_dict})

0 commit comments

Comments
 (0)