Turkey’s president, Recep Tayyip Erdogan, has gall. He has jailed tens of thousands of people, shuttered more than 150 media companies and called a referendum in April to enlarge his powers. Yet when local authorities in Germany, for security reasons, barred two Turkish ministers from campaigning on his behalf among Turks living in Germany, Mr. Erdogan exploded, accusing Germany of Nazi practices and knowing nothing about democracy. If he himself was barred from speaking in the country, he warned, he’d “set the world on fire.”

This is all the more galling knowing that among the scores of journalists jailed in Turkey is a reporter for Die Welt, with German and Turkish citizenship, whom Mr. Erdogan has accused of being a German spy and a “representative” of an outlawed Kurdish rebel group. Some furious German politicians have urged Chancellor Angela Merkel to tell Mr. Erdogan that he is not welcome in Germany. Properly, and wisely, she has not. Appearances by leading Turkish politicians, she said, “remain possible within the laws applicable here.” Permits for demonstrations are handled locally, though, and Ms. Merkel said she has no say in them.

Ms. Merkel does have security reasons for her restraint: Germany uses a NATO base in Turkey for reconnaissance aircraft in the fight against the Islamic State, and Ms. Merkel was the key force behind a European Union deal with Ankara by which Turkey helps stem the flow of refugees into Europe. But more important, Germany does not want to stoop to Mr. Erdogan’s level.