mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-08-01 10:20:32 +00:00
HandleMessage() always checked IsAllowed(senderID), which re-gates individual senders against the allowlist even after the channel-specific group policy (checkGroupPolicy) already approved access. This caused group members who weren't individually listed in AllowFrom to be silently blocked — even when GroupPolicy was set to "open" or the group ID was in the allowlist. Affected channels: Zalo Personal, Slack (any channel using HandleMessage with peerKind "group"). Telegram was unaffected because it publishes directly to the bus. Now HandleMessage only enforces the allowlist for DMs. Group access control is fully delegated to each channel's checkGroupPolicy. Co-authored-by: Luvu182 <208665161+Luvu182@users.noreply.github.com>