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 | ||
| _workflow_exc.py | ||
| account.py | ||
| api_based_extension.py | ||
| base.py | ||
| dataset.py | ||
| engine.py | ||
| enums.py | ||
| model.py | ||
| provider.py | ||
| source.py | ||
| task.py | ||
| tools.py | ||
| types.py | ||
| web.py | ||
| workflow.py | ||