In most people's understanding, these two policies are mutually exclusive in the way that they can't happen at the same time. But apparently in Ukraine they can.
The legislation aims to "improve the combat capabilities of the Ukrainian Armed Forces and reduce human and financial resources of Ukraine," the text of the document said. The law was voted in favor by 229 deputies out of 226 needed to pass the legislation.
Most likely, the Ukrainian government wants to limit a number of foreign volunteers joining the ranks of Donbass militia. But what an outrageous policy of double-standards it is: on the one hand, to allow foreigners fight on the side of Kiev forces and, on the other hand, try to prosecute those who want to fight against them.
Probably not, because the Ukrainian government has already thought about it and integrated the infamous Azov battalion, known for its radical nationalist views, into the Ukrainian National Guard, so the law will in fact legalize the foreigners fighting among them.