mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:47:39 +00:00
refactor(security): centralize channel allowlist auth policy
This commit is contained in:
@@ -55,6 +55,16 @@ describe("resolveGroupAllowFromSources", () => {
|
||||
}),
|
||||
).toEqual(["owner", "owner2"]);
|
||||
});
|
||||
|
||||
it("can disable fallback to DM allowlist", () => {
|
||||
expect(
|
||||
resolveGroupAllowFromSources({
|
||||
allowFrom: ["owner", "owner2"],
|
||||
groupAllowFrom: [],
|
||||
fallbackToAllowFrom: false,
|
||||
}),
|
||||
).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("firstDefined", () => {
|
||||
|
||||
Reference in New Issue
Block a user