mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(gateway): include QQBOT in allowlist-aware unauthorized DM map
Follow-up to #9337: _is_user_authorized maps Platform.QQBOT to QQ_ALLOWED_USERS, but the new platform_env_map inside _get_unauthorized_dm_behavior omitted it. A QQ operator with a strict user allowlist would therefore still have the gateway send pairing codes to strangers. Adds QQBOT to the env map and a regression test.
This commit is contained in:
parent
7282652655
commit
1ee3b79f1d
2 changed files with 21 additions and 0 deletions
|
|
@ -2988,6 +2988,7 @@ class GatewayRunner:
|
|||
Platform.WECOM_CALLBACK: "WECOM_CALLBACK_ALLOWED_USERS",
|
||||
Platform.WEIXIN: "WEIXIN_ALLOWED_USERS",
|
||||
Platform.BLUEBUBBLES: "BLUEBUBBLES_ALLOWED_USERS",
|
||||
Platform.QQBOT: "QQ_ALLOWED_USERS",
|
||||
}
|
||||
if os.getenv(platform_env_map.get(platform, ""), "").strip():
|
||||
return "ignore"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue