A defence lawyer is obliged to act solely in the interests the accused, subject to the restrictions laid down by law and in the professional code of practice.