It is completely legal by the law regulations of the United Kingdom. Editing or proofreading a dissertation or specifically law dissertation is completely legal if it is done by professionals or even someone else. There is no unethical practice that is indulged in such purpose. Moreover, editing a law dissertation is very helpful for students to obtain a successful grade by submitting an error-less dissertation.