openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 317 B
JavaScript
//#region src/channels/plugins/account-action-gate.ts
/**
* Creates an action gate where account-specific flags override channel-level defaults.
*/
function createAccountActionGate(e) {
return (t, n = true) => e.accountActions?.[t] ?? e.baseActions?.[t] ?? n;
}
//#endregion
export { createAccountActionGate as t };