This phrase means 'you can do it'. It also means 'it is okay to do it'. It is a casual way to give permission.
、。
You can eat this cake now.
、、。
If you're tired, it's okay to rest a little, so don't overdo it.
、。
Because I hadn't finished my homework yet, I wasn't told 'it's okay to play'.
に「に、」。
My boss told me, 'I'm leaving this matter to you, so you can do it as you see fit'.
、、。
Oh, that game? I've already beaten it, so you can go ahead and play it.