If a declarant or any other person subject to this chapter fails to comply with any provision hereof or any provision of the declaration or bylaws, any person or class of persons adversely affected by the failure to comply has a claim for appropriate relief. The court, in an appropriate case, may award reasonable attorney's fees to the prevailing party.