If you pander to someone then you do something that is specifically for their benefit.
For example, if you are teaching a group of students and one particular student insists that the class should talk about a particular topic whilst other students want to talk about something else then, if the teacher agrees to it, he would be 'pandering to the wishes of one particular student."
n.b the verb "to pander," is always used in a negative way.