Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ async def override(self, id: str) -> "Agent":
if not db_agent:
raise HTTPException(status_code=404, detail="Agent not found")
# check owner
if self.owner and db_agent.owner != self.owner:
if db_agent.owner and db_agent.owner != self.owner:
raise HTTPException(
status_code=403,
detail="You do not have permission to update this agent",
Expand Down
Loading