The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(feishu): drop redundant authorization-check guard on card clicks
unsupportedpastels58892b93e87a
diff --git a/plugins/platforms/feishu/adapter.py b/plugins/platforms/feishu/adapter.pyindex 557a10abc74..72f18b83c67 100644--- a/plugins/platforms/feishu/adapter.py+++ b/plugins/platforms/feishu/adapter.py@@ -2250,12 +2250,8 @@ class FeishuAdapter(BasePlatformAdapter):return "*" in allowed_ids or bool(operator_ids & allowed_ids)# SessionSource.user_id is the tenant user_id, else open_id (_resolve_sender_profile).principal = str(user_id or "").strip() or normalized- # getattr: object.__new__ test doubles never ran BasePlatformAdapter.__init__. Feishu chat- # ids don't say DM vs group; "group" is the check's own default.- verdict = (- self._is_sender_authorized(principal, "group", str(chat_id or "") or None)- if getattr(self, "_authorization_check", None) is not None else None- )+ # Feishu chat ids don't say DM vs group; "group" is the check's own default.+ verdict = self._is_sender_authorized(principal, "group", str(chat_id or "") or None)if verdict is None:logger.debug("[Feishu] No gateway authorization check for card operator %s; denying", normalized)return False