openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
8 lines (7 loc) • 379 B
JavaScript
//#region src/gateway/gateway-owner-profile.ts
/** Owner attribution never supplies a verified login or changes operator authority. */
function shouldUseGatewayOwnerProfile(e) {
return e.role === "operator" && !e.authenticatedUserId && (!e.rolesConfigured || e.authMethod === "token" || e.authMethod === "password");
}
//#endregion
export { shouldUseGatewayOwnerProfile as t };