fix(hub): a No or typed answer to a permission ask names its requester
The recipient picker made every denial carry its recipient, but answerAsk still called denyNow without one, so the hub refused the entry and a No or typed answer to a permission ask failed. answerAsk now passes item.to. tests/e2e/test_ask_answers_e2e.py answers one ask with No and one with a typed reason and checks both are denied by post to the requester. 🎯 Fix: 92 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: ~100 % 🏆 Score: 90 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
624729d7c7
commit
ca4ce68029
2 files changed
+60
-1
No files matched your search
@@ -139,7 +139,7 @@
|
||||
* @param {string} answer the picked label, or the typed text.
|
||||
* @param {boolean} typed whether answer is typed text, which always denies with it as the reason.
|
||||
*/
|
||||
const answerAsk = (item, answer, typed) => (!typed && answer === ALLOW ? approveOne(item) : denyNow(item, "post", typed ? answer : ""));
|
||||
const answerAsk = (item, answer, typed) => (!typed && answer === ALLOW ? approveOne(item) : denyNow(item, "post", typed ? answer : "", item.to));
|
||||
|
||||
/**
|
||||
* @param {Object} item an inbox item.
|
||||
|
||||
Reference in new issue
Block a user