https://www.ft.com/content/b041cc5d-f545-4f6a-a475-54ba3c5b269b
Article from the FT, you need to subscribe, but it is relayed here
Effectively, the Spanish High Court ruled that the governments lock-down actions violated fundamental rights and lacked sufficient legal basis.
Unfortunately, the Spanish government then circumvented the High Court and invoked emergency powers to seal off Madrid.