hacer de su capa un sayo

Etymology
lit. 'to make a raincoat from one's cape'.

Verb

 * 1)  to do whatever one fancies, to do as one pleases