In kindergarten, I was about five years old and it was raining outside. I remember this because we were playing indoors. I was, among others, playing in the sand box with hard, rubber green dinosaurs. We were talking and it got to the point where I felt encouraged to throw sand at a boy.
I felt justified.
It got into his mouth and eyes. I was congratulated by my peers. Someone pulled me roughly from behind, looked me in the eye and told me, 'We don't throw sand.' With her long arms, she dragged me to the corner of the room and sat me down for my 'time out.'
If truly felt that the boy deserved sand in his face, the person I am now would have either notified the teacher or done something subtler. If I threw sand because I was encouraged by children around me, then I would feel disappointed for not withdrawing myself from the group earlier.
This memory could have been the one you remembered because it is a clear situation where you felt that you should have been allow to act on your emotions and felt justified but were scolded forcefully by an adult. One of my earliest memories is similiar to your situation too.