A derivative action to enforce a right of a limited partnership may be maintained only by a person that is a partner at the time the action is commenced and to which any of the following applies:
(1) The person was a partner when the conduct giving rise to the action occurred.
(2) The person’s status as a partner devolved on the person by operation of law or pursuant to the terms of the partnership agreement from a person that was a partner at the time of the conduct.