mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
fix(api): bind scoped lookups to nested owner refs (#38470)
This commit is contained in:
@@ -153,8 +153,8 @@ class AppMCPServerController(Resource):
|
||||
select(AppMCPServer)
|
||||
.where(
|
||||
AppMCPServer.id == server_ref.server_id,
|
||||
AppMCPServer.tenant_id == server_ref.tenant_id,
|
||||
AppMCPServer.app_id == server_ref.app_id,
|
||||
AppMCPServer.tenant_id == server_ref.app.tenant_id,
|
||||
AppMCPServer.app_id == server_ref.app.app_id,
|
||||
)
|
||||
.limit(1)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user