fix: allow shared users to view request logs for their own API keys
This commit is contained in:
@@ -91,7 +91,7 @@ async def chat(
|
|||||||
|
|
||||||
app = app_service.get_app(api_key_auth.resource_id, api_key_auth.workspace_id)
|
app = app_service.get_app(api_key_auth.resource_id, api_key_auth.workspace_id)
|
||||||
other_id = payload.user_id
|
other_id = payload.user_id
|
||||||
workspace_id = app.workspace_id
|
workspace_id = api_key_auth.workspace_id
|
||||||
end_user_repo = EndUserRepository(db)
|
end_user_repo = EndUserRepository(db)
|
||||||
new_end_user = end_user_repo.get_or_create_end_user(
|
new_end_user = end_user_repo.get_or_create_end_user(
|
||||||
app_id=app.id,
|
app_id=app.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user