What did the bear eat? There were two things he was not allowed to do. What were they?

The bear was very fond of fruits but he was not allowed to climb the apple tree to eat apples. He ate bread, porridge, potatoes, cabbages and turnips. Apart from not being allowed to climb the trees, he was also not allowed to touch or disturb the beehives.