MEMORANDUM DECISION
11 Defendant Unicity International, Inc. (Unicity) appeals the district court's denial of its request for statutory attorney fees after successfully defending against a contract-based suit brought by Plaintiff Roger Hoo-ban. Because the district court based its denial of statutory attorney fees on an erroneous legal interpretation of the applicable statute, we reverse and remand for further proceedings.
BACKGROUND
T2 At a bankruptcy auction, Hooban purchased all outstanding stock in H & H Networking Services, Inc. (H & H), which had previously been wholly owned by John and *487 Brenda Hargett. Prior to being sold at auction, H & H had entered into a distributorship agreement (the Contract) with Unicity. The Contract included restrictions on transfer of the distributorship: Unicity reserved a right of first offer, allowing Unicity to object to any transfer and purchase back the distributorship. The Contract also provided that in the event of a legal dispute, "the prevailing party shall be reimbursed attorney[ ] fees ... by the other party."
13 Under the terms of the Contract, the transfer of H & H stock from the Hargetts to Hooban constituted a transfer of the distributorship. Unicity objected to the transfer and attempted to exercise its right of first offer, offering Hooban an amount equal to what he had paid at auction. Hooban refused and filed a complaint, attempting to enforce the Contract against Unicity. Hoo-ban also sought attorney fees under the Contract.
4 4 Unicity and Hooban both filed motions for summary judgment, and the district court granted Unicity's motion. The district court determined that Hooban had brought suit against Unicity as an individual and not as a representative of H & H, and that although H & H was a party to the Contract, Hooban was not. The district court concluded that because Hooban was not a party to the Contract he lacked standing to enforce its terms. Accordingly, the district court dismissed all of Hooban's claims.
5 Unicity filed a motion to recover attorney fees under Utah Code section 78B-5-826. 1 The district court denied Unicity's motion for attorney fees, reasoning that because it had concluded that Hooban was not a party to the Contract, the Contract could not be used as a basis to award attorney fees under the statute. Unicity appeals.
ISSUE AND STANDARD OF REVIEW
T6 Our disposition of this appeal turns on our selection of the appropriate standard of review. Hooban argues that because Utah Code section 78B-5-826 provides that "[al court may award ... attorney fees," the district court's decision must be reviewed for an abuse of discretion. Utah Code Ann. § T8B-5-826 (2008) (emphasis added); see also Bilanzich v. Lonetti,
T7 After reviewing the district court's written ruling denying Unicity attorney fees, we are persuaded that the district court's decision was based on a legal interpretation of section 78B-5-826. The district court conducted a lengthy legal analysis of section 78B-5-826, ultimately concluding that the statute is inapplicable to Unicity's request for attorney fees. Only after reaching this legal conclusion did the district court mention, in passing, its discretion to award attorney fees. We, therefore, review the district court's decision as one of "[s)tatutory interpretation{, which] is a matter of law ... review[ed] for correctness." Bilanzich,
ANALYSIS
18 "Generally, attorney fees are awarded only when authorized by contract or
*488
by statute." Bilanzich v. Lonetti,
T9 Section 78B-5-826 provides, "A court may award ... attorney fees to either party that prevails in a civil action based upon any ... written contract ... when the provisions of the ... written contract ... allow at least one party to recover attorney fees." Utah Code Ann. § 78B-5-826 (2008). Under the statute's plain language, attorney fees are awardable if two conditions are met: first, the underlying litigation must be based upon a contract; and second, the contract must allow at least one party to recover attorney fees. See Bilanzich,
110 Section T8B-5-826 applies to Un-icity's request for attorney fees because Hoo-ban's suit was "based upon" the Contract. Hooban brought suit against Unicity as if he were a party to the Contract, attempting to enforce the Contract and even seeking attorney fees under its provisions. Hooban, therefore, brought a "civil action based upon ... [a] written contract ... [which] allow[ed] at least one party to recover attorney fees." See Utah Code Ann. § 78B-5-826. That Hooban was found not to be a party to the Contract does not bar application of section 78B-5-826 because the statute "requires only that a party to the litigation assert the [contract's] enforceability as basis for recovery." Bilanzich,
CONCLUSION
111 Utah Code section 78B-5-826 is applicable to Unicity's request for statutory attorney fees incurred from successfully defending against Hooban's contract-based suit wherein Hooban attempted to enforce the Contract as a party. Having concluded that section 78B-5-826 applies here, we remand to the district court for determination, in exercise of its discretion, of whether Unicity should be awarded statutory attorney fees. 3
{12 Accordingly, we reverse and remand for proceedings consistent with this opinion.
183 WE CONCUR: PAMELA T. GREENWOOD, Presiding Judge, and JAMES Z. DAVIS, Judge.
Notes
. In 2008, Utah's reciprocal attorney fees statute was renumbered from section 78-27-56.5 to section 78B-5-826, without substantive change. See Utah Code Ann. § 78B-5-826 amend. notes (2008). For convenience, we cite to the current version of the statute.
. We recognize that our disposition of this case is inconsistent with the holding in Anglin v. Contracting Fabrication Machining, Inc.,
. Whether attorney fees should be awarded under Utah Code section 78B-5-826 is a separate policy-driven analysis subject to the district court's discretion. See Bilanzich,
