On Sunday , the Iranian parliament voted to bar such visits if Iran is referred to the Security Council .