Is it ever okay to discipline another person’s child?

Sara comments on Ohio woman arrested for spanking a stranger’s child. Is it ever okay to discipline another person’s child?