mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 17:50:22 +00:00
refactor(security): remove unused empty allowlist mode
This commit is contained in:
@@ -37,18 +37,6 @@ describe("isAllowedParsedChatSender", () => {
|
||||
expect(allowed).toBe(false);
|
||||
});
|
||||
|
||||
it("can explicitly allow when allowFrom is empty", () => {
|
||||
const allowed = isAllowedParsedChatSender({
|
||||
allowFrom: [],
|
||||
sender: "+15551234567",
|
||||
emptyAllowFrom: "allow",
|
||||
normalizeSender: (sender) => sender,
|
||||
parseAllowTarget,
|
||||
});
|
||||
|
||||
expect(allowed).toBe(true);
|
||||
});
|
||||
|
||||
it("allows wildcard entries", () => {
|
||||
const allowed = isAllowedParsedChatSender({
|
||||
allowFrom: ["*"],
|
||||
|
||||
Reference in New Issue
Block a user