Borrower loan-party ownership on AppMortgageService

Featurekamo-shared-library
Shipped
July 5, 2026 at 6:37 PM UTC
Author
Kamo
Commit
bd6322e

Adds the ownership primitives for borrower self-service (a borrower is a plain org Member with no operator LOS rights): - createBlankOwnedByMember(orgId, memberId): createBlank + stamp ownership by attaching (or reusing) an Account whose primaryMember is the borrower. - isMemberPartyToApp(appUid, orgId, memberId): fail-closed loan-party guard — org match AND caller is primaryMember/AccountMember of the app's Account. - listOwnedByMember(orgId, memberId): the borrower's own applications. Ownership is the design-mandated **************** link; Account/ AccountMember already exist, so no schema/KI. Additive only (D52).

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing