Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 4c1e8dc

Browse files
authored
Merge pull request #301 from transformerlab/fix/request-logs-orgwide
allow others from the same org to view logs of a request id
2 parents 258b62f + b95753a commit 4c1e8dc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lattice/routes/instances/routes.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,10 +1477,7 @@ async def stream_request_logs(
14771477
raise HTTPException(status_code=404, detail="Request not found")
14781478

14791479
# Check if user has access to this request
1480-
if (
1481-
request.user_id != user["id"]
1482-
or request.organization_id != user["organization_id"]
1483-
):
1480+
if request.organization_id != user["organization_id"]:
14841481
raise HTTPException(status_code=403, detail="Access denied")
14851482

14861483
def generate_logs():

0 commit comments

Comments
 (0)