Indian Supreme Court says no beard in school, doesn't want 'Talibanisation'

Its okay that judge ruled against him, but judge should've simply discarded the application saying something like that it is school's policy and that govt rules don't dictate schools on rules bla bla... but to drag in Talibanisation suggests as if beards = Talibanism.