"in accordance with the electoral legislation of the country of origin"
For example, in accordance with Russian legislation, compatriots are not only citizens of the Russian Federation living abroad; however, only citizens of the Russian Federation have the right to vote.