There is a guiding principle in Islam which gives the ruler the right to promulgate orders restricting something which is initially permissible, if the restriction is calculated to serve the interests of the community. The restriction must not violate any Islamic principle or legal provisions. For instance, if the authorities in a country have raised the minimum marriageable age for girls to eighteen, one should obey it.