mirror of https://github.com/langgenius/dify.git
The `ChatMessageApi` (`POST /console/api/apps/{app_id}/chat-messages`) and
`ModelConfigResource` (`POST /console/api/apps/{app_id}/model-config`)
endpoints do not properly validate user permissions, allowing users without `editor`
permission to access restricted functionality.
This PR addresses this issue by adding proper permission check.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| annotation.py | ||
| app.py | ||
| audio.py | ||
| completion.py | ||
| conversation.py | ||
| error.py | ||
| file.py | ||
| file_preview.py | ||
| message.py | ||
| site.py | ||
| workflow.py | ||