[#51556199] preventing delete an access_right for users with open contracts