diff --git a/src/xrpld/app/tx/detail/LoanDelete.cpp b/src/xrpld/app/tx/detail/LoanDelete.cpp index 4cf9e9a929..e2ee709563 100644 --- a/src/xrpld/app/tx/detail/LoanDelete.cpp +++ b/src/xrpld/app/tx/detail/LoanDelete.cpp @@ -86,10 +86,11 @@ LoanDelete::preclaim(PreclaimContext const& ctx) // should be impossible return tecINTERNAL; // LCOV_EXCL_LINE } - if (loanBrokerSle->at(sfOwner) != account) + if (loanBrokerSle->at(sfOwner) != account && + loanSle->at(sfBorrower) != account) { JLOG(ctx.j.warn()) - << "LoanBroker for Loan does not belong to the account."; + << "Account is not Loan Broker Owner or Loan Borrower."; return tecNO_PERMISSION; }