mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
All MyPy and Ruff checked
This commit is contained in:
@@ -208,7 +208,7 @@ async def validate_channel_access(channel_id: UUID, agent_id: UUID) -> bool:
|
||||
)
|
||||
if response.status_code == status.HTTP_200_OK:
|
||||
data = response.json()
|
||||
return data.get("allowed", False)
|
||||
return bool(data.get("allowed", False))
|
||||
return False
|
||||
except Exception:
|
||||
# On error, deny access (fail closed)
|
||||
|
||||
Reference in New Issue
Block a user