mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 06:41:37 +00:00
fix(auto-reply): gate inline directives on resolved auth (#27248)
Landed from contributor PR #27248 by @kevinWangSheng. Co-authored-by: shenghui kevin <shenghuikevin@shenghuideMac-mini.local>
This commit is contained in:
@@ -252,7 +252,9 @@ export async function resolveReplyDirectives(params: {
|
||||
}
|
||||
}
|
||||
}
|
||||
let directives = commandAuthorized
|
||||
// Use command.isAuthorizedSender (resolved authorization) instead of raw commandAuthorized
|
||||
// to ensure inline directives work when commands.allowFrom grants access (e.g., LINE).
|
||||
let directives = command.isAuthorizedSender
|
||||
? parsedDirectives
|
||||
: {
|
||||
...parsedDirectives,
|
||||
|
||||
Reference in New Issue
Block a user