Take the liberty of (doing something)

To assume the right to do something.

I took the liberty of eating some food from my friend’s refridgerator.