Hello and thanks for using Just Answer.
My name is ***** ***** am happy to assist you with your enquiry.
There are no legal restraints on a non UK passport holder purchasing a property in UK.
As long as you can provide suitable id to your Solicitor, you will have no problems.
I hope this clarifies matters, but please let me know if you require any further information.