The law is the same. Anyone, including non-law students, can qualify for the UPSC by taking the law optional.