While parts of the Afghan constitution are based in Sharia,it also acknowledges the United Nations Declaration on Human Rights. Part of the UN declaration is freedom of religion, so in following sharia law as strictly as they are, they are violation thier constitution. (Unfortunately, most of their judges are muslim Imams)