In a derivative action, the plaintiff must be a partner or an assignee of a partnership interest at the time of bringing the action and:
(1) At the time of the transaction of which the plaintiff complains; or
(2) The plaintiff's status as a partner or an assignee of a partnership interest had devolved upon the plaintiff by operation of law or pursuant to the terms of the partnership agreement from a person who was a partner or an assignee of a partnership interest at the time of the transaction.