Section 7. All corporations shall be subject to such laws as may be enacted affecting or altering their corporate rights or duties or dissolving them.