mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 18:53:33 +00:00
refactor: share nextcloud onboarding allowFrom lookup
This commit is contained in:
@@ -984,7 +984,7 @@ describe("setTopLevelChannelDmPolicyWithAllowFrom", () => {
|
||||
channel: "nextcloud-talk",
|
||||
dmPolicy: "open",
|
||||
getAllowFrom: (inputCfg) =>
|
||||
(inputCfg.channels?.["nextcloud-talk"]?.allowFrom ?? []).map((entry) => String(entry)),
|
||||
normalizeAllowFromEntries(inputCfg.channels?.["nextcloud-talk"]?.allowFrom ?? []),
|
||||
});
|
||||
expect(next.channels?.["nextcloud-talk"]?.allowFrom).toEqual(["alice", "*"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user