If the door was closed, water got in - owner's problem
If the door was closed, window smashed - owner's problem
If the door was open, water got in - tenant's problem
If you do nothing, underlay will rot, go mouldy - your responsibilty to have carpet repaired :(