Who pays to repair a water leak in a shared building in Spain?

If you own an apartment in Spain and there's a leak in the building are you or the home owners's association responsible for paying for repairs?
Tomas Kauer - Moderator
www.tomaskauer.com