Legislation might affect charities