fix: Workflow debugging for authorized applications will result in an error message indicating unauthorized access to the model (#2819)
This commit is contained in:
parent
7ca0a7bd02
commit
1a704f1c25
@ -97,7 +97,7 @@ class ChatView(APIView):
|
|||||||
tags=[_("Application/Chat")])
|
tags=[_("Application/Chat")])
|
||||||
def post(self, request: Request):
|
def post(self, request: Request):
|
||||||
return result.success(ChatSerializers.OpenWorkFlowChat(
|
return result.success(ChatSerializers.OpenWorkFlowChat(
|
||||||
data={**request.data, 'user_id': request.user.id}).open())
|
data={'user_id': request.user.id, **request.data}).open())
|
||||||
|
|
||||||
class OpenTemp(APIView):
|
class OpenTemp(APIView):
|
||||||
authentication_classes = [TokenAuth]
|
authentication_classes = [TokenAuth]
|
||||||
|
|||||||
@ -268,8 +268,10 @@ const openChatId: () => Promise<string> = () => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (isWorkFlow(obj.type)) {
|
if (isWorkFlow(obj.type)) {
|
||||||
|
console.log(obj)
|
||||||
const submitObj = {
|
const submitObj = {
|
||||||
work_flow: obj.work_flow
|
work_flow: obj.work_flow,
|
||||||
|
user_id: obj.user
|
||||||
}
|
}
|
||||||
return applicationApi.postWorkflowChatOpen(submitObj).then((res) => {
|
return applicationApi.postWorkflowChatOpen(submitObj).then((res) => {
|
||||||
chartOpenId.value = res.data
|
chartOpenId.value = res.data
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user